Skip to content
Browse files

[1.2.X] Fixed #14897 -- fixed some synax highlighting in the formset …

…documentation. Thanks to marcusf for the patch. Backport of [14912].

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent bd4f4b8 commit 642ba981e10678051e69051f5bee5a587fa00947 @alex alex committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 docs/topics/forms/formsets.txt
2 docs/topics/forms/formsets.txt
@@ -376,6 +376,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
formset = ArticleFormSet()
return render_to_response('manage_articles.html', {'formset': formset})
@@ -425,6 +426,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
article_formset = ArticleFormSet(prefix='articles')
book_formset = BookFormSet(prefix='books')

0 comments on commit 642ba98

Please sign in to comment.
Something went wrong with that request. Please try again.