Changeset 4495
- Timestamp:
- 02/12/07 23:02:47 (2 years ago)
- Files:
-
- django/trunk/docs/forms.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/forms.txt
r4420 r4495 174 174 # Check for validation errors 175 175 errors = manipulator.get_validation_errors(new_data) 176 manipulator.do_html2python(new_data) 176 177 if errors: 177 178 return render_to_response('places/errors.html', {'errors': errors}) 178 179 else: 179 manipulator.do_html2python(new_data)180 180 new_place = manipulator.save(new_data) 181 181 return HttpResponse("Place created: %s" % new_place) … … 230 230 # Check for errors. 231 231 errors = manipulator.get_validation_errors(new_data) 232 manipulator.do_html2python(new_data) 232 233 233 234 if not errors: 234 235 # No errors. This means we can save the data! 235 manipulator.do_html2python(new_data)236 236 new_place = manipulator.save(new_data) 237 237 … … 325 325 new_data = request.POST.copy() 326 326 errors = manipulator.get_validation_errors(new_data) 327 manipulator.do_html2python(new_data) 327 328 if not errors: 328 manipulator.do_html2python(new_data)329 329 manipulator.save(new_data) 330 330 … … 407 407 new_data = request.POST.copy() 408 408 errors = manipulator.get_validation_errors(new_data) 409 manipulator.do_html2python(new_data) 409 410 if not errors: 410 manipulator.do_html2python(new_data)411 411 412 412 # Send e-mail using new_data here...
