1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

magic-removal: Fixed #1713 -- Fixed bug in docs/forms.txt

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-28 19:47:46 +00:00
parent 84fd6a9f87
commit a5afa8af63

View File

@ -162,8 +162,8 @@ creation view that takes validation into account::
if errors: if errors:
return render_to_response('places/errors.html', {'errors': errors}) return render_to_response('places/errors.html', {'errors': errors})
else: else:
manipulator.do_html2python(request.POST) manipulator.do_html2python(new_data)
new_place = manipulator.save(request.POST) new_place = manipulator.save(new_data)
return HttpResponse("Place created: %s" % new_place) return HttpResponse("Place created: %s" % new_place)
In this new version, errors will be found -- ``manipulator.get_validation_errors`` In this new version, errors will be found -- ``manipulator.get_validation_errors``