Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…mentation

Backport of 976dc07 from master
  • Loading branch information...
commit 3d6388941d231e7ae1b5a53cdf2e401b704744b5 1 parent 9eb7d59
@phantummm phantummm authored timgraham committed
Showing with 0 additions and 5 deletions.
  1. +0 −5 docs/topics/forms/modelforms.txt
View
5 docs/topics/forms/modelforms.txt
@@ -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.
>>> 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)
Please sign in to comment.
Something went wrong with that request. Please try again.