Move xblock tagging model import into method.

This commit is contained in:
John Eskew
2017-10-02 19:30:55 -04:00
parent 0890193d6b
commit 762b87e25d

View File

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