diff options
| author | Alex Hunley <phantummm@gmail.com> | 2013-02-16 14:30:55 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-02-16 18:09:43 -0500 |
| commit | 3d6388941d231e7ae1b5a53cdf2e401b704744b5 (patch) | |
| tree | 6ba658e66b09170a4252f8e213e9335d6fc6423d /docs | |
| parent | 9eb7d59665972690bea790fd1ed12eeb142c0ee4 (diff) | |
[1.4.x] Fixed #19719 - Removed misleading example from ModelForm documentation
Backport of 976dc07baf from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 091073fb0c..5ca3318872 100644 --- a/docs/topics/forms/modelforms.txt +++ b/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) |
