Skip to content
Snippets Groups Projects
Commit ddae9e02 authored by Kyle McCormick's avatar Kyle McCormick Committed by Calen Pennington
Browse files

Use fully-qualified edxnotes app name when checking if installed

parent 92cf17b9
Branches
Tags release-2020-03-20-08.43
No related merge requests found
......@@ -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
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