summaryrefslogtreecommitdiff
path: root/tests/admin_utils
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-10-05 09:17:26 -0400
committerTim Graham <timograham@gmail.com>2016-10-05 09:17:26 -0400
commite5f5e8ac17161708b18ac1e88aeedaa1fd7451ec (patch)
tree20f3a9f1501521dc27f86a89353b2aff8529f72e /tests/admin_utils
parente1b4360adc97f002fc6c8f7974f73fcf1eaeb278 (diff)
downloaddjango-e5f5e8ac17161708b18ac1e88aeedaa1fd7451ec.tar.gz
Refs #27218 -- Fixed LogEntry tests on MySQL 5.5.
Diffstat (limited to 'tests/admin_utils')
-rw-r--r--tests/admin_utils/test_logentry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_utils/test_logentry.py b/tests/admin_utils/test_logentry.py
index aaa67ffc13..ba0e3c1bfd 100644
--- a/tests/admin_utils/test_logentry.py
+++ b/tests/admin_utils/test_logentry.py
@@ -185,7 +185,7 @@ class LogEntryTests(TestCase):
self.user.pk, content_type_pk, self.a1.pk, repr(self.a1), CHANGE,
change_message='Changed something else',
)
- self.assertEqual(log_entry, LogEntry.objects.latest('action_time'))
+ self.assertEqual(log_entry, LogEntry.objects.latest('id'))
def test_recentactions_without_content_type(self):
"""