Merge pull request #7301 from open-craft/course-import-page-fix
Replace broken logic in import template with working logic in view.
This commit is contained in:
@@ -304,6 +304,7 @@ def _import_handler(request, courselike_key, root_name, successful_url, context_
|
||||
context_name: courselike_module,
|
||||
'successful_import_redirect_url': successful_url,
|
||||
'import_status_url': status_url,
|
||||
'library': isinstance(courselike_key, LibraryLocator)
|
||||
})
|
||||
else:
|
||||
return HttpResponseNotFound()
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
import json
|
||||
try:
|
||||
library = True
|
||||
except NameError:
|
||||
library = False
|
||||
%>
|
||||
<%block name="title">
|
||||
%if library:
|
||||
|
||||
Reference in New Issue
Block a user