Commit ec94f732 by ichuang

remove try...except workaround for circular import bug fixed by…

remove try...except workaround for circular import bug fixed by https://github.com/MITx/mitx/issues/1260
parent e5c95808
......@@ -13,12 +13,7 @@ from xmodule.modulestore import Location
from xmodule.timeparse import parse_time
from xmodule.x_module import XModule, XModuleDescriptor
# student.models imports Role, which imports courseware.access ; use a try, to break the circular import
try:
from student.models import CourseEnrollmentAllowed
except Exception as err:
CourseEnrollmentAllowed = None
from student.models import CourseEnrollmentAllowed
DEBUG_ACCESS = False
......
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