mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #12952 -- Adjusted admin log change messages to use form labels instead of field names.
This commit is contained in:
committed by
Carlton Gibson
parent
1564e42ad3
commit
87f5d07eed
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user