summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-12-13 19:37:18 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-12-13 19:37:18 +0000
commit68548c3effaddfe726bc64abd0ac88b4996bdd28 (patch)
tree7f0a0dce5bd14c29635f52dd77b3512b36f6d7df /docs
parent6ec348fb41114ef4bd39c24de9ba089d44187b0c (diff)
Fixed #14897 -- fixed some synax highlighting in the formset documentation. Thanks to marcusf for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/formsets.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt
index fae76c7a2e..db53fc296a 100644
--- a/docs/topics/forms/formsets.txt
+++ b/docs/topics/forms/formsets.txt
@@ -381,6 +381,7 @@ management form inside the template. Let's look at a sample view:
formset = ArticleFormSet(request.POST, request.FILES)
if formset.is_valid():
# do something with the formset.cleaned_data
+ pass
else:
formset = ArticleFormSet()
return render_to_response('manage_articles.html', {'formset': formset})
@@ -430,6 +431,7 @@ a look at how this might be accomplished:
book_formset = BookFormSet(request.POST, request.FILES, prefix='books')
if article_formset.is_valid() and book_formset.is_valid():
# do something with the cleaned_data on the formsets.
+ pass
else:
article_formset = ArticleFormSet(prefix='articles')
book_formset = BookFormSet(prefix='books')