Commit 762b87e2 by John Eskew

Move xblock tagging model import into method.

parent 0890193d
......@@ -13,8 +13,6 @@ from edxmako.shortcuts import render_to_string
from xmodule.capa_module import CapaModule
from xmodule.x_module import AUTHOR_VIEW
from .models import TagCategories
_ = lambda text: text
......@@ -30,6 +28,8 @@ class StructuredTagsAside(XBlockAside):
"""
Return available tags
"""
# Import is placed here to avoid model import at project startup.
from .models import TagCategories
return TagCategories.objects.all()
def _get_studio_resource_url(self, relative_url):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment