mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30980 -- Improved error message when checking uniqueness of admin actions' __name__.
Thanks Keshav Kumar for the initial patch.
This commit is contained in:
committed by
Mariusz Felisiak
parent
e2d9d66a22
commit
8b3e714ecf
@@ -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',
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user