From 3eab964332c221910641d7e8a493d287ef18faf3 Mon Sep 17 00:00:00 2001 From: Joseph Kocherhans Date: Thu, 24 May 2007 03:38:26 +0000 Subject: newforms-admin: Cleaned up FormSet internals and renamed formset.form_list to formset.forms. Better, but still not quite there. git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@5325 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/formsets.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/regressiontests/forms/formsets.py b/tests/regressiontests/forms/formsets.py index 96aa86a9b2..1c4f3d91b8 100644 --- a/tests/regressiontests/forms/formsets.py +++ b/tests/regressiontests/forms/formsets.py @@ -20,7 +20,7 @@ for adding data. By default, it displays 1 blank form. It can display more, but we'll look at how to do so later. >>> formset = ChoiceFormSet(auto_id=False, prefix='choices') ->>> for form in formset.form_list: +>>> for form in formset.forms: ... print form.as_ul()
  • Choice:
  • Votes:
  • @@ -78,7 +78,7 @@ an extra blank form is included. >>> initial = [{'choice': u'Calexico', 'votes': 100}] >>> formset = ChoiceFormSet(initial=initial, auto_id=False, prefix='choices') ->>> for form in formset.form_list: +>>> for form in formset.forms: ... print form.as_ul()
  • Choice:
  • Votes:
  • @@ -150,7 +150,7 @@ num_extra argument to formset_for_form. >>> ChoiceFormSet = formset_for_form(Choice, num_extra=3) >>> formset = ChoiceFormSet(auto_id=False, prefix='choices') ->>> for form in formset.form_list: +>>> for form in formset.forms: ... print form.as_ul()
  • Choice:
  • Votes:
  • @@ -223,7 +223,7 @@ data. >>> initial = [{'choice': u'Calexico', 'votes': 100}] >>> formset = ChoiceFormSet(initial=initial, auto_id=False, prefix='choices') ->>> for form in formset.form_list: +>>> for form in formset.forms: ... print form.as_ul()
  • Choice:
  • Votes:
  • @@ -268,7 +268,7 @@ rather than formset.cleaned_data >>> initial = [{'choice': u'Calexico', 'votes': 100}, {'choice': u'Fergie', 'votes': 900}] >>> formset = ChoiceFormSet(initial=initial, auto_id=False, prefix='choices') ->>> for form in formset.form_list: +>>> for form in formset.forms: ... print form.as_ul()
  • Choice:
  • Votes:
  • @@ -318,7 +318,7 @@ something at the front of the list, you'd need to set it's order to 0. >>> initial = [{'choice': u'Calexico', 'votes': 100}, {'choice': u'Fergie', 'votes': 900}] >>> formset = ChoiceFormSet(initial=initial, auto_id=False, prefix='choices') ->>> for form in formset.form_list: +>>> for form in formset.forms: ... print form.as_ul()
  • Choice:
  • Votes:
  • @@ -364,7 +364,7 @@ Let's try throwing ordering and deletion into the same form. ... {'choice': u'The Decemberists', 'votes': 500}, ... ] >>> formset = ChoiceFormSet(initial=initial, auto_id=False, prefix='choices') ->>> for form in formset.form_list: +>>> for form in formset.forms: ... print form.as_ul()
  • Choice:
  • Votes:
  • -- cgit v1.3