diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-11-17 19:16:30 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-11-17 19:19:59 +0100 |
| commit | e0363c688d9b85124ec4fbac00debe5f4dc1e63c (patch) | |
| tree | 397553621b7fdc9be039e31cee5628ee468139c5 /tests | |
| parent | 2a67374b51c5705d5c64a5d7117ad8552e98b4bb (diff) | |
Fixed #19114 -- Fixed LogEntry unicode representation
Thanks niko at neagee.net for the report and Emil Stenstrom for
the patch.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/admin_util/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): |
