diff options
author | Alasdair Nicol <alasdair@thenicols.net> | 2015-08-01 22:32:51 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-08-03 08:58:39 -0400 |
commit | 8972818289452d611d97fac0f4a6d24625987b31 (patch) | |
tree | 908a734d7dd290f39278bf7a232a48afa290c6d5 /tests/admin_checks | |
parent | a6acfc31837fd7a9e0e387320d995b2c85cfcfce (diff) | |
download | django-8972818289452d611d97fac0f4a6d24625987b31.tar.gz |
Fixed #25206 -- Fixed error message when checking a ModelAdmin fieldset's fields.
Diffstat (limited to 'tests/admin_checks')
-rw-r--r-- | tests/admin_checks/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py index d988ade920..0b4d905c1b 100644 --- a/tests/admin_checks/tests.py +++ b/tests/admin_checks/tests.py @@ -125,7 +125,7 @@ class SystemChecksTestCase(SimpleTestCase): def test_fieldsets_fields_non_tuple(self): """ - Tests for a tuple/list within fieldsets[1]['fields']. + Tests for a tuple/list for the first fieldset's fields. """ class NotATupleAdmin(admin.ModelAdmin): list_display = ["pk", "title"] @@ -139,7 +139,7 @@ class SystemChecksTestCase(SimpleTestCase): errors = NotATupleAdmin.check(model=Song) expected = [ checks.Error( - "The value of 'fieldsets[1]['fields']' must be a list or tuple.", + "The value of 'fieldsets[0][1]['fields']' must be a list or tuple.", hint=None, obj=NotATupleAdmin, id='admin.E008', @@ -149,7 +149,7 @@ class SystemChecksTestCase(SimpleTestCase): def test_nonfirst_fieldset(self): """ - Tests for a tuple/list within the second fieldsets[2]['fields']. + Tests for a tuple/list for the second fieldset's fields. """ class NotATupleAdmin(admin.ModelAdmin): fieldsets = [ @@ -164,7 +164,7 @@ class SystemChecksTestCase(SimpleTestCase): errors = NotATupleAdmin.check(model=Song) expected = [ checks.Error( - "The value of 'fieldsets[1]['fields']' must be a list or tuple.", + "The value of 'fieldsets[1][1]['fields']' must be a list or tuple.", hint=None, obj=NotATupleAdmin, id='admin.E008', |