From 8b3e714ecf409ed6c9628c3f2a4e033cbfa4253b Mon Sep 17 00:00:00 2001 From: Adam Donaghy Date: Mon, 6 Jan 2020 22:10:40 +1100 Subject: Fixed #30980 -- Improved error message when checking uniqueness of admin actions' __name__. Thanks Keshav Kumar for the initial patch. --- tests/modeladmin/test_checks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/modeladmin') diff --git a/tests/modeladmin/test_checks.py b/tests/modeladmin/test_checks.py index 98cc56d67c..308f4a19eb 100644 --- a/tests/modeladmin/test_checks.py +++ b/tests/modeladmin/test_checks.py @@ -1441,9 +1441,8 @@ class ActionsCheckTests(CheckTestCase): self.assertIsInvalid( BandAdmin, Band, - "__name__ attributes of actions defined in " - ".BandAdmin'> must be unique.", + "__name__ attributes of actions defined in BandAdmin must be " + "unique. Name 'action' is not unique.", id='admin.E130', ) -- cgit v1.2.1