app/soc/views/models/survey.py
changeset 2503 c14a754b0644
parent 2502 2e096acc8720
child 2504 74b115310fb0
equal deleted inserted replaced
2502:2e096acc8720 2503:c14a754b0644
   605     survey_form.getFields(post_dict=request.POST)
   605     survey_form.getFields(post_dict=request.POST)
   606 
   606 
   607     if not survey_form.is_valid():
   607     if not survey_form.is_valid():
   608       # redirect to takeGet so we can handle errors
   608       # redirect to takeGet so we can handle errors
   609       return self.takeGet(request, template, context, params, entity, record,
   609       return self.takeGet(request, template, context, params, entity, record,
   610                           form_data=properties)
   610                           form_data=request.POST)
   611 
   611 
   612     # retrieve the data from the form
   612     # retrieve the data from the form
   613     _, properties = forms_helper.collectCleanedFields(survey_form)
   613     _, properties = forms_helper.collectCleanedFields(survey_form)
   614 
   614 
   615     # add the required SurveyRecord properties
   615     # add the required SurveyRecord properties