diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt
index fae76c7..db53fc2 100644
|
a
|
b
|
management form inside the template. Let's look at a sample view:
|
| 381 | 381 | formset = ArticleFormSet(request.POST, request.FILES) |
| 382 | 382 | if formset.is_valid(): |
| 383 | 383 | # do something with the formset.cleaned_data |
| | 384 | pass |
| 384 | 385 | else: |
| 385 | 386 | formset = ArticleFormSet() |
| 386 | 387 | return render_to_response('manage_articles.html', {'formset': formset}) |
| … |
… |
a look at how this might be accomplished:
|
| 430 | 431 | book_formset = BookFormSet(request.POST, request.FILES, prefix='books') |
| 431 | 432 | if article_formset.is_valid() and book_formset.is_valid(): |
| 432 | 433 | # do something with the cleaned_data on the formsets. |
| | 434 | pass |
| 433 | 435 | else: |
| 434 | 436 | article_formset = ArticleFormSet(prefix='articles') |
| 435 | 437 | book_formset = BookFormSet(prefix='books') |