Commit f27c16c8 by Piotr Mitros

Missed another spot

parent d1276e9a
...@@ -51,9 +51,10 @@ def modx_dispatch(request, module=None, dispatch=None, id=None): ...@@ -51,9 +51,10 @@ def modx_dispatch(request, module=None, dispatch=None, id=None):
s = StudentModule.objects.filter(student=request.user, s = StudentModule.objects.filter(student=request.user,
module_id=id) module_id=id)
#s = StudentModule.get_with_caching(request.user, id) #s = StudentModule.get_with_caching(request.user, id)
if s is None: if len(s) == 0 or s is None:
log.debug("Couldnt find module for user and id " + str(module) + " " + str(request.user) + " "+ str(id)) log.debug("Couldnt find module for user and id " + str(module) + " " + str(request.user) + " "+ str(id))
raise Http404 raise Http404
s = s[0]
oldgrade = s.grade oldgrade = s.grade
oldstate = s.state oldstate = s.state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment