PLAT-1408: Import csrf from new path.
This commit is contained in:
@@ -3,7 +3,7 @@ Views to show a course's bookmarks.
|
||||
"""
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.core.context_processors import csrf
|
||||
from django.template.context_processors import csrf
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.shortcuts import render_to_response
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Views for the course home page.
|
||||
"""
|
||||
|
||||
from django.core.context_processors import csrf
|
||||
from django.template.context_processors import csrf
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.template.loader import render_to_string
|
||||
from django.utils.decorators import method_decorator
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Views to show a course outline.
|
||||
"""
|
||||
from django.core.context_processors import csrf
|
||||
from django.template.context_processors import csrf
|
||||
from django.template.loader import render_to_string
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
from web_fragments.fragment import Fragment
|
||||
|
||||
@@ -4,7 +4,7 @@ Views that handle course updates.
|
||||
from datetime import datetime
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.core.context_processors import csrf
|
||||
from django.template.context_processors import csrf
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.template.loader import render_to_string
|
||||
from django.utils.decorators import method_decorator
|
||||
|
||||
@@ -3,7 +3,7 @@ Views for the course search page.
|
||||
"""
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.core.context_processors import csrf
|
||||
from django.template.context_processors import csrf
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.template.loader import render_to_string
|
||||
from django.utils.decorators import method_decorator
|
||||
|
||||
Reference in New Issue
Block a user