Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #730 from phantummm/ticket_19719

Fixed #19719 - Removed misleading example from ModelForm documentation
  • Loading branch information...
commit a7358586e95016e414d90bccdff4675b1b65bbe3 2 parents 6323616 + 976dc07
Tim Graham authored February 16, 2013

Showing 1 changed file with 0 additions and 5 deletions. Show diff stats Hide diff stats

  1. 5  docs/topics/forms/modelforms.txt
5  docs/topics/forms/modelforms.txt
@@ -222,11 +222,6 @@ supplied, ``save()`` will update that instance. If it's not supplied,
222 222
     # Save a new Article object from the form's data.
223 223
     >>> new_article = f.save()
224 224
 
225  
-    # Create a form to edit an existing Article.
226  
-    >>> a = Article.objects.get(pk=1)
227  
-    >>> f = ArticleForm(instance=a)
228  
-    >>> f.save()
229  
-
230 225
     # Create a form to edit an existing Article, but use
231 226
     # POST data to populate the form.
232 227
     >>> a = Article.objects.get(pk=1)

0 notes on commit a735858

Please sign in to comment.
Something went wrong with that request. Please try again.