1
0
mirror of https://github.com/django/django.git synced 2025-03-14 03:10:45 +00:00

Removed a misleading examples from documentations ala ticket #19719

This commit is contained in:
Alex Hunley 2013-02-16 14:30:55 -05:00
parent e74e207cce
commit 976dc07baf

View File

@ -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)