Skip to content

Commit b4f89aa

Browse files
committed
fix: fix method position
1 parent aa13a9a commit b4f89aa

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

xmodule/html_block.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,6 @@
4141
_ = lambda text: text
4242

4343

44-
HtmlBlockMixin = None
45-
46-
47-
def reset_Mixin():
48-
"""Reset Mixin as per django settings flag"""
49-
global HtmlBlockMixin
50-
HtmlBlockMixin = (
51-
_ExtractedHtmlBlockMixin if settings.USE_EXTRACTED_HTML_BLOCK
52-
else _BuiltinHtmlBlockMixin
53-
)
54-
return HtmlBlockMixin
55-
56-
reset_Mixin()
57-
58-
5944
@XBlock.needs("i18n")
6045
@XBlock.needs("mako")
6146
@XBlock.needs("user")
@@ -394,6 +379,21 @@ class _BuiltInHtmlBlock(_BuiltinHtmlBlockMixin): # lint-amnesty, pylint: disabl
394379
is_extracted = False
395380

396381

382+
HtmlBlockMixin = None
383+
384+
385+
def reset_Mixin():
386+
"""Reset Mixin as per django settings flag"""
387+
global HtmlBlockMixin
388+
HtmlBlockMixin = (
389+
_ExtractedHtmlBlockMixin if settings.USE_EXTRACTED_HTML_BLOCK
390+
else _BuiltinHtmlBlockMixin
391+
)
392+
return HtmlBlockMixin
393+
394+
reset_Mixin()
395+
396+
397397
class AboutFields: # lint-amnesty, pylint: disable=missing-class-docstring
398398
display_name = String(
399399
help=_("The display name for this component."),

0 commit comments

Comments
 (0)