alphagov/supplier-submission-portal — pull request #126 by bjshort (2014-10-22 10:01:48+00:00)
Title: Page values not retaining after upload

Could probably do with someone other then myself pulling and checking.

- QuestionPages now extend AuthenticatingQuestionPage which contains common methods used when saving pages.
- Listing model contains a method to find completedPages by PAGE_ID.
- When a page is saved it will either update and existing object in the database (using update()) or insert a new object (using insert()) - this fixes the above problem and also clears out bloating of empty objects. Previously there was a bug around using the insert() method to update existing objects.