Use fully-qualified edxnotes app name when checking if installed

This commit is contained in:
Kyle McCormick
2020-09-24 15:30:20 -04:00
committed by Calen Pennington
parent 92cf17b95b
commit ddae9e02ab

View File

@@ -10,8 +10,8 @@ def edxnotes(cls):
"""
Conditional decorator that loads edxnotes only when they exist.
"""
if "edxnotes" in sys.modules:
from edxnotes.decorators import edxnotes as notes
if "lms.djangoapps.edxnotes" in sys.modules:
from lms.djangoapps.edxnotes.decorators import edxnotes as notes
return notes(cls)
else:
return cls