diff options
| author | Tim Graham <timograham@gmail.com> | 2013-02-16 15:05:04 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-02-16 15:05:04 -0800 |
| commit | a7358586e95016e414d90bccdff4675b1b65bbe3 (patch) | |
| tree | 77f1006c9ef6d083f3bb84b73e7aa088683edbcf | |
| parent | 632361611c6386696dc525ad3aecf065e6ed98ee (diff) | |
| parent | 976dc07bafbd64f08c78ad6b1a4cbec5be9c85f4 (diff) | |
Merge pull request #730 from phantummm/ticket_19719
Fixed #19719 - Removed misleading example from ModelForm documentation
| -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 d9e00d86cf..fec0d14836 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) |
