Commit 577ea029 authored by bmsleight's avatar bmsleight Committed by Simon Charette
Browse files

[1.9.x] Fixed a typo in a modelforms docs example.

Backport of 8715205c from master
parent 3503b816
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1033,7 +1033,7 @@ formset::
                # Do something.
        else:
            formset = AuthorFormSet(queryset=Author.objects.filter(name__startswith='O'))
        return render(request, 'manage_authors.html", {'formset': formset})
        return render(request, 'manage_authors.html', {'formset': formset})

Note that we pass the ``queryset`` argument in both the ``POST`` and ``GET``
cases in this example.