From 2b5730873bd29e5bb449df5800dea610c462786a Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Sat, 14 May 2011 16:29:39 +0000 Subject: Added ability to describe grouping of form fields in the same row to the `fields` ModelAdmin attribute. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16225 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/admin_validation/tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/regressiontests/admin_validation') diff --git a/tests/regressiontests/admin_validation/tests.py b/tests/regressiontests/admin_validation/tests.py index 6fbdc8040e..a80820cb67 100644 --- a/tests/regressiontests/admin_validation/tests.py +++ b/tests/regressiontests/admin_validation/tests.py @@ -201,7 +201,7 @@ class ValidationTestCase(TestCase): validate, BookAdmin, Book) - def test_cannon_include_through(self): + def test_cannot_include_through(self): class FieldsetBookAdmin(admin.ModelAdmin): fieldsets = ( ('Header 1', {'fields': ('name',)}), @@ -212,6 +212,11 @@ class ValidationTestCase(TestCase): validate, FieldsetBookAdmin, Book) + def test_nested_fields(self): + class NestedFieldsAdmin(admin.ModelAdmin): + fields = ('price', ('name', 'subtitle')) + validate(NestedFieldsAdmin, Book) + def test_nested_fieldsets(self): class NestedFieldsetAdmin(admin.ModelAdmin): fieldsets = ( -- cgit v1.3