Skip to content
Snippets Groups Projects
Commit 762b87e2 authored by John Eskew's avatar John Eskew
Browse files

Move xblock tagging model import into method.

parent 0890193d
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment