mirror of
https://github.com/django/django.git
synced 2024-12-24 18:16:19 +00:00
Merge pull request #730 from phantummm/ticket_19719
Fixed #19719 - Removed misleading example from ModelForm documentation
This commit is contained in:
commit
a7358586e9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user