mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Fixed #12952 -- Adjusted admin log change messages to use form labels instead of field names.
This commit is contained in:
parent
1564e42ad3
commit
87f5d07eed
10 changed files with 128 additions and 17 deletions
|
@ -900,7 +900,7 @@ class AdminViewBasicTest(AdminViewBasicTestCase):
|
|||
self.assertRedirects(response, reverse('admin:admin_views_readablepizza_changelist'))
|
||||
pizza_ctype = ContentType.objects.get_for_model(ReadablePizza, for_concrete_model=False)
|
||||
log = LogEntry.objects.filter(content_type=pizza_ctype, object_id=pizza.pk).first()
|
||||
self.assertEqual(log.get_change_message(), 'Changed toppings.')
|
||||
self.assertEqual(log.get_change_message(), 'Changed Toppings.')
|
||||
|
||||
def test_allows_attributeerror_to_bubble_up(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue