--- a/quiz/views.py Tue Apr 20 21:12:54 2010 +0530
+++ b/quiz/views.py Tue Apr 20 21:15:18 2010 +0530
@@ -71,7 +71,7 @@
form = UserRegisterForm()
return render_to_response('register.html',{'form':form})
-def start_quiz(request, username):
+def start_quiz(request):
""" get the user by his username.
then check for the event quiz status
then check if his ip has finished the quiz
@@ -79,7 +79,7 @@
"""
user = request.user
- if not user.username == username:
+ if not user.is_authenticated():
raise Http404
try: