Skip to content
Snippets Groups Projects
Commit b94b211c authored by Feanil Patel's avatar Feanil Patel
Browse files

In python3 force_unicode is renamed to force_text.

parent d1556fc8
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ from __future__ import absolute_import
from django import forms
from django.forms.utils import flatatt
from django.template.loader import render_to_string
from django.utils.encoding import force_unicode
from django.utils.encoding import force_text
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe
from wiki.editors.base import BaseEditor
......@@ -42,7 +42,7 @@ class CodeMirrorWidget(forms.Widget):
return render_to_string('wiki/includes/editor_widget.html',
{'attrs': mark_safe(flatatt(final_attrs)),
'content': conditional_escape(force_unicode(value)),
'content': conditional_escape(force_text(value)),
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment