From 1a2296267d034c6cf4dbac6709d9c9f77787bbcf Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Fri, 12 Sep 2008 15:52:39 +0000 Subject: [PATCH] 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 --- docs/topics/forms/modelforms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 4c33d60df1..3f744e6221 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -521,7 +521,7 @@ formset to a user to edit ``Author`` model instances:: def manage_authors(request): AuthorFormSet = modelformset_factory(Author) - if request.POST == 'POST': + if request.method == 'POST': formset = AuthorFormSet(request.POST, request.FILES) if formset.is_valid(): formset.save()