equal
deleted
inserted
replaced
621 |
621 |
622 # call the hook method before updating the SurveyRecord |
622 # call the hook method before updating the SurveyRecord |
623 self._takePost(request, params, entity, record, properties) |
623 self._takePost(request, params, entity, record, properties) |
624 |
624 |
625 # update the record entity if any and clear all dynamic properties |
625 # update the record entity if any and clear all dynamic properties |
626 record_logic.updateOrCreateFromFields(record, properties, clear_dynamic=True) |
626 record_logic.updateOrCreateFromFields(record, properties, |
|
627 clear_dynamic=True) |
627 |
628 |
628 # TODO: add notice to page that the response has been saved successfully |
629 # TODO: add notice to page that the response has been saved successfully |
629 # redirect to the same page for now |
630 # redirect to the same page for now |
630 redirect = request.path |
631 redirect = request.path |
631 return http.HttpResponseRedirect(redirect) |
632 return http.HttpResponseRedirect(redirect) |