1
0
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:
Adam Donaghy
2020-01-06 22:10:40 +11:00
committed by Mariusz Felisiak
parent e2d9d66a22
commit 8b3e714ecf
3 changed files with 18 additions and 13 deletions

View File

@@ -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',
)