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:
Kelketek
2015-03-12 18:15:32 -05:00
4 changed files with 54 additions and 8 deletions

View File

@@ -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()

View File

@@ -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: