From e0363c688d9b85124ec4fbac00debe5f4dc1e63c Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 17 Nov 2012 19:16:30 +0100 Subject: Fixed #19114 -- Fixed LogEntry unicode representation Thanks niko at neagee.net for the report and Emil Stenstrom for the patch. --- tests/regressiontests/admin_util/tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/regressiontests/admin_util/tests.py b/tests/regressiontests/admin_util/tests.py index ef8a91d1db..e9e122a9f0 100644 --- a/tests/regressiontests/admin_util/tests.py +++ b/tests/regressiontests/admin_util/tests.py @@ -274,6 +274,10 @@ class UtilTests(unittest.TestCase): six.text_type(log_entry).startswith('Deleted ') ) + # Make sure custom action_flags works + log_entry.action_flag = 4 + self.assertEqual(six.text_type(log_entry), 'LogEntry Object') + def test_safestring_in_field_label(self): # safestring should not be escaped class MyForm(forms.Form): -- cgit v1.3