Moved imports to top of file

This commit is contained in:
kimth
2012-07-17 14:44:20 -04:00
parent 9b0e00efa2
commit 8c327eb07f

View File

@@ -4,8 +4,10 @@ import logging
from django.conf import settings
from django.http import Http404
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from functools import wraps
from django.contrib.auth.models import User
from xmodule.modulestore.django import modulestore
from mitxmako.shortcuts import render_to_string
from models import StudentModule, StudentModuleCache
@@ -327,8 +329,6 @@ def add_histogram(module):
return module
# TODO: TEMPORARY BYPASS OF AUTH!
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.models import User
@csrf_exempt
def xqueue_callback(request, userid, id, dispatch):
# Parse xqueue response