Fixed a typo in a modelforms docs example.

This commit is contained in:
bmsleight 2016-01-09 17:51:34 +00:00 committed by Simon Charette
parent 4c1fab0f29
commit 8715205c5c
1 changed files with 1 additions and 1 deletions

View File

@ -1023,7 +1023,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.