mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #21113 -- Made LogEntry.change_message language independent
Thanks Tim Graham for the review.
This commit is contained in:
parent
56aaae58a7
commit
cf7894be88
11 changed files with 216 additions and 35 deletions
|
@ -203,12 +203,12 @@ class UtilsTests(SimpleTestCase):
|
|||
"title"
|
||||
)
|
||||
self.assertEqual(
|
||||
label_for_field("title2", Article),
|
||||
"another name"
|
||||
label_for_field("hist", Article),
|
||||
"History"
|
||||
)
|
||||
self.assertEqual(
|
||||
label_for_field("title2", Article, return_attr=True),
|
||||
("another name", None)
|
||||
label_for_field("hist", Article, return_attr=True),
|
||||
("History", None)
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue