Loading docs/topics/forms/modelforms.txt +1 −1 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
docs/topics/forms/modelforms.txt +1 −1 Original line number Diff line number Diff line Loading @@ -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. Loading