From c14937cf7a1e8c25702e89485cc2dd33aa0d3a16 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Tue, 26 Jan 2010 15:02:53 +0000 Subject: Fixed #12508 - Added ability to dynamically add inlines in the admin app. Refs #13. Also introduces an ``empty_form`` attribute on formsets to make it easier to implement dynamic forms. Many thanks to Zain Memon for the initial patch from his Summer of Code 2009 project, Stanislaus Madueke for his django-dynamic-formset app and all the other people helping out. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12297 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/formsets.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/regressiontests/forms/formsets.py') diff --git a/tests/regressiontests/forms/formsets.py b/tests/regressiontests/forms/formsets.py index dd2b188fd2..7999710ec1 100644 --- a/tests/regressiontests/forms/formsets.py +++ b/tests/regressiontests/forms/formsets.py @@ -238,6 +238,13 @@ data.
  • Choice:
  • Votes:
  • +Make sure retrieving an empty form works, and it shows up in the form list + +>>> formset.empty_form.empty_permitted +True +>>> print formset.empty_form.as_ul() +
  • Choice:
  • +
  • Votes:
  • # FormSets with deletion ###################################################### -- cgit v1.3