Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #5105 -- Fixed two ReST errors in docs/newforms.txt. Thanks, Ra…

…miro Morales

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 404bf3b1886aab17dc5f982ad9d093bcd5e13576 1 parent 3ed4997
Adrian Holovaty adrianholovaty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/newforms.txt
6 docs/newforms.txt
View
@@ -748,7 +748,7 @@ form data)::
>>> f = ContactFormWithMugshot(request.POST, request.FILES)
Constructing an unbound form is the same as always -- just omit both
-form data *and* file data:
+form data *and* file data::
# Unbound form with a image field
>>> f = ContactFormWithMugshot()
@@ -1625,8 +1625,8 @@ When you use a simple ``save()`` on a form, all data -- including
many-to-many data -- is saved without the need for any additional method calls.
For example::
- # Create a form instance with POST data.
- >>> f = AuthorForm(request.POST)
+ # Create a form instance with POST data.
+ >>> f = AuthorForm(request.POST)
# Create and save the new author instance. There's no need to do anything else.
>>> new_author = f.save()
Please sign in to comment.
Something went wrong with that request. Please try again.