Skip to content

Commit

Permalink
Removed a misleading examples from documentations ala ticket #19719
Browse files Browse the repository at this point in the history
  • Loading branch information
phantummm committed Feb 16, 2013
1 parent e74e207 commit 976dc07
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/topics/forms/modelforms.txt
Expand Up @@ -222,11 +222,6 @@ supplied, ``save()`` will update that instance. If it's not supplied,
# Save a new Article object from the form's data.
>>> 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
# POST data to populate the form.
>>> a = Article.objects.get(pk=1)
Expand Down

0 comments on commit 976dc07

Please sign in to comment.