Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, April 9th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
762b87e2
Commit
762b87e2
authored
7 years ago
by
John Eskew
Browse files
Options
Downloads
Patches
Plain Diff
Move xblock tagging model import into method.
parent
0890193d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cms/lib/xblock/tagging/tagging.py
+2
-2
2 additions, 2 deletions
cms/lib/xblock/tagging/tagging.py
with
2 additions
and
2 deletions
cms/lib/xblock/tagging/tagging.py
+
2
−
2
View file @
762b87e2
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment