1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #36363 -- Added field names to admin duplicated fields error hint.

This commit is contained in:
Eric Blum
2025-05-01 16:31:06 -04:00
committed by Sarah Boyce
parent 358fd21c47
commit 384cdf0f7a
3 changed files with 54 additions and 5 deletions

View File

@@ -222,6 +222,7 @@ class FieldsetsCheckTests(CheckTestCase):
ValidationTestModel,
"There are duplicate field(s) in 'fieldsets[0][1]'.",
"admin.E012",
"Remove duplicates of 'name'.",
)
def test_duplicate_fields_in_fieldsets(self):
@@ -236,6 +237,7 @@ class FieldsetsCheckTests(CheckTestCase):
ValidationTestModel,
"There are duplicate field(s) in 'fieldsets[1][1]'.",
"admin.E012",
"Remove duplicates of 'name'.",
)
def test_fieldsets_with_custom_form_validation(self):
@@ -255,6 +257,7 @@ class FieldsCheckTests(CheckTestCase):
ValidationTestModel,
"The value of 'fields' contains duplicate field(s).",
"admin.E006",
"Remove duplicates of 'name'.",
)
def test_inline(self):