Fixed a typo in a modelforms docs example.
This commit is contained in:
parent
4c1fab0f29
commit
8715205c5c
|
@ -1023,7 +1023,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…
Reference in New Issue