mirror of
https://github.com/django/django.git
synced 2025-07-20 09:39:13 +00:00
[1.9.x] Fixed a typo in a modelforms docs example.
Backport of 8715205c5c0e49b21b5bbea35d904713ee188a71 from master
This commit is contained in:
parent
3503b816cf
commit
577ea02977
@ -1033,7 +1033,7 @@ formset::
|
|||||||
# Do something.
|
# Do something.
|
||||||
else:
|
else:
|
||||||
formset = AuthorFormSet(queryset=Author.objects.filter(name__startswith='O'))
|
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``
|
Note that we pass the ``queryset`` argument in both the ``POST`` and ``GET``
|
||||||
cases in this example.
|
cases in this example.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user