Missed a spot

This commit is contained in:
Piotr Mitros
2012-03-04 14:06:08 -05:00
parent b348f5d9b3
commit d1276e9af7

View File

@@ -48,9 +48,9 @@ def make_track_function(request):
def modx_dispatch(request, module=None, dispatch=None, id=None):
''' Generic view for extensions. '''
# Grab the student information for the module from the database
#s = StudentModule.objects.filter(student=request.user,
# module_id=id)
s = StudentModule.get_with_caching(request.user, id)
s = StudentModule.objects.filter(student=request.user,
module_id=id)
#s = StudentModule.get_with_caching(request.user, id)
if s is None:
log.debug("Couldnt find module for user and id " + str(module) + " " + str(request.user) + " "+ str(id))
raise Http404