~ubuntu-branches/ubuntu/oneiric/python-django/oneiric

« back to all changes in this revision

Viewing changes to docs/topics/forms/formsets.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2011-02-17 13:34:07 UTC
  • mfrom: (1.1.13 upstream) (4.4.12 sid)
  • Revision ID: james.westby@ubuntu.com-20110217133407-rwr88elhhq6j7ba0
Tags: 1.2.5-1ubuntu1
* Merge from Debian for security fixes (LP: #719031). Remaining changes:
  - debian/control: don't Build-Depends on locales-all, which doesn't exist
    in natty
* Drop the following patches, now included upstream:
  - debian/patches/07_security_admin_infoleak.diff
  - debian/patches/08_security_pasword_reset_dos.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
            formset = ArticleFormSet(request.POST, request.FILES)
377
377
            if formset.is_valid():
378
378
                # do something with the formset.cleaned_data
 
379
                pass
379
380
        else:
380
381
            formset = ArticleFormSet()
381
382
        return render_to_response('manage_articles.html', {'formset': formset})
425
426
            book_formset = BookFormSet(request.POST, request.FILES, prefix='books')
426
427
            if article_formset.is_valid() and book_formset.is_valid():
427
428
                # do something with the cleaned_data on the formsets.
 
429
                pass
428
430
        else:
429
431
            article_formset = ArticleFormSet(prefix='articles')
430
432
            book_formset = BookFormSet(prefix='books')