Code

Ticket #1713: forms.txt.diff

File forms.txt.diff, 644 bytes (added by Simon Willison, 8 years ago)

patch

Line 
1Index: forms.txt
2===================================================================
3--- forms.txt   (revision 2766)
4+++ forms.txt   (working copy)
5@@ -162,8 +162,8 @@
6         if errors:
7             return render_to_response('places/errors.html', {'errors': errors})
8         else:
9-            manipulator.do_html2python(request.POST)
10-            new_place = manipulator.save(request.POST)
11+            manipulator.do_html2python(new_data)
12+            new_place = manipulator.save(new_data)
13             return HttpResponse("Place created: %s" % new_place)
14 
15 In this new version, errors will be found -- ``manipulator.get_validation_errors``