app/soc/views/models/survey.py
changeset 2540 1e44d71c0e3e
parent 2534 c880489123fc
child 2542 a9dec4763c6b
equal deleted inserted replaced
2539:dd0322a37e44 2540:1e44d71c0e3e
   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)