mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 17:36:49 +01:00
python2 unicode fix
This commit is contained in:
parent
9a864ff6c9
commit
f6b8e13a0c
@ -1,5 +1,8 @@
|
|||||||
|
from __future__ import unicode_literals # ensure that RichText.__str__ returns unicode
|
||||||
|
|
||||||
import re # parsing HTML with regexes LIKE A BOSS.
|
import re # parsing HTML with regexes LIKE A BOSS.
|
||||||
|
|
||||||
|
from django.utils.encoding import python_2_unicode_compatible
|
||||||
from django.utils.html import escape
|
from django.utils.html import escape
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
|
|
||||||
@ -173,6 +176,7 @@ def expand_db_html(html, for_editor=False):
|
|||||||
return html
|
return html
|
||||||
|
|
||||||
|
|
||||||
|
@python_2_unicode_compatible
|
||||||
class RichText(object):
|
class RichText(object):
|
||||||
"""
|
"""
|
||||||
A custom object used to represent a renderable rich text value.
|
A custom object used to represent a renderable rich text value.
|
||||||
|
Loading…
Reference in New Issue
Block a user