Commit 5c3c8bf0 authored by Alex Hunley's avatar Alex Hunley Committed by Tim Graham
Browse files

[1.5.x] Fixed #19719 - Removed misleading example from ModelForm documentation

Backport of 976dc07b from master
parent 41848b07
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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)