[1.4.x] Fixed #19719 - Removed misleading example from ModelForm documentation

Backport of 976dc07baf from master
This commit is contained in:
Alex Hunley 2013-02-16 14:30:55 -05:00 committed by Tim Graham
parent 9eb7d59665
commit 3d6388941d
1 changed files with 0 additions and 5 deletions

View File

@ -225,11 +225,6 @@ supplied, ``save()`` will update that instance. If it's not supplied,
# Save a new Article object from the form's data. # Save a new Article object from the form's data.
>>> new_article = f.save() >>> new_article = f.save()
# Create a form to edit an existing Article.
>>> a = Article.objects.get(pk=1)
>>> f = ArticleForm(instance=a)
>>> f.save()
# Create a form to edit an existing Article, but use # Create a form to edit an existing Article, but use
# POST data to populate the form. # POST data to populate the form.
>>> a = Article.objects.get(pk=1) >>> a = Article.objects.get(pk=1)