Merge pull request #12541 from edx/robrap/fix-imports
Fix import order for HTML, Text.
This commit is contained in:
@@ -23,7 +23,7 @@ def HTML(html): # pylint: disable=invalid-name
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
from openedx.core.djangolib.markup import Text, HTML
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
%>
|
||||
${Text(_("Write & send {start}email{end}")).format(
|
||||
start=HTML("<a href='mailto:{}'>").format(user.email),
|
||||
|
||||
@@ -10,7 +10,7 @@ import ddt
|
||||
from django.utils.translation import ugettext as _, ungettext
|
||||
from mako.template import Template
|
||||
|
||||
from openedx.core.djangolib.markup import Text, HTML
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
|
||||
|
||||
@attr('shard_2')
|
||||
@@ -60,7 +60,7 @@ class FormatHtmlTest(unittest.TestCase):
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
from openedx.core.djangolib.markup import Text, HTML
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
%>
|
||||
${Text(_(u"A & {BC}")).format(BC=HTML("B & C"))}
|
||||
""",
|
||||
|
||||
Reference in New Issue
Block a user