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:05:35 -0500 |
| commit | 5c3c8bf09a986660fcd4421df38745167a10ba11 (patch) | |
| tree | 0683bffbbb900009377fd08cae0f2d2af7866cb7 /docs | |
| parent | 41848b078a2f0402b23043da7cfb517d0a194aa3 (diff) | |
[1.5.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 ba9fb0d8e0..09010f142d 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -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) |
