Fixed #9056 -- Corrected a typo in topic/forms/modelforms.txt documentation. Thanks drozzy for catching this.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1b58b77f0d
commit
1a2296267d
|
@ -521,7 +521,7 @@ formset to a user to edit ``Author`` model instances::
|
||||||
|
|
||||||
def manage_authors(request):
|
def manage_authors(request):
|
||||||
AuthorFormSet = modelformset_factory(Author)
|
AuthorFormSet = modelformset_factory(Author)
|
||||||
if request.POST == 'POST':
|
if request.method == 'POST':
|
||||||
formset = AuthorFormSet(request.POST, request.FILES)
|
formset = AuthorFormSet(request.POST, request.FILES)
|
||||||
if formset.is_valid():
|
if formset.is_valid():
|
||||||
formset.save()
|
formset.save()
|
||||||
|
|
Loading…
Reference in New Issue