summaryrefslogtreecommitdiff
path: root/tests/modeladmin
diff options
context:
space:
mode:
authorAdam Donaghy <adamdonaghy1994@gmail.com>2020-01-06 22:10:40 +1100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-01-10 14:00:28 +0100
commit8b3e714ecf409ed6c9628c3f2a4e033cbfa4253b (patch)
treea73fd0ff983283482318a9465d0beb3ccefb5497 /tests/modeladmin
parente2d9d66a22f9004c0349f6aa9f8762fa558bdee8 (diff)
downloaddjango-8b3e714ecf409ed6c9628c3f2a4e033cbfa4253b.tar.gz
Fixed #30980 -- Improved error message when checking uniqueness of admin actions' __name__.
Thanks Keshav Kumar for the initial patch.
Diffstat (limited to 'tests/modeladmin')
-rw-r--r--tests/modeladmin/test_checks.py5
1 files changed, 2 insertions, 3 deletions
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 "
- "<class 'modeladmin.test_checks.ActionsCheckTests."
- "test_actions_not_unique.<locals>.BandAdmin'> must be unique.",
+ "__name__ attributes of actions defined in BandAdmin must be "
+ "unique. Name 'action' is not unique.",
id='admin.E130',
)