mirror of
https://github.com/django/django.git
synced 2025-07-23 21:25:40 +00:00
Fixed #19114 -- Fixed LogEntry unicode representation
Thanks niko at neagee.net for the report and Emil Stenstrom for the patch.
This commit is contained in:
parent
2a67374b51
commit
e0363c688d
2 changed files with 12 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue