Merge pull request #12541 from edx/robrap/fix-imports

Fix import order for HTML, Text.
This commit is contained in:
Robert Raposa
2016-05-25 15:23:08 -04:00
33 changed files with 41 additions and 41 deletions

View File

@@ -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),

View File

@@ -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"))}
""",