may be we forgot to remove username while we were removing previously. so removed it now
authornishanth
Tue, 20 Apr 2010 23:31:57 +0530
changeset 24 2368bb63ee39
parent 23 f57c30096b51
child 25 4143a8f90b00
may be we forgot to remove username while we were removing previously. so removed it now
quiz/views.py
--- a/quiz/views.py	Tue Apr 20 23:29:44 2010 +0530
+++ b/quiz/views.py	Tue Apr 20 23:31:57 2010 +0530
@@ -31,7 +31,7 @@
 
     user = request.user
     if user.is_authenticated():
-        return redirect("/quiz/start/%s"%user.username)
+        return redirect("/quiz/start/")
     else:
         try:
             ip = request.META['REMOTE_ADDR']
@@ -64,7 +64,7 @@
 
             user = authenticate(username=username, password="123")
             login(request, user)
-            return redirect("/quiz/start/%s"%username)
+            return redirect("/quiz/start/")
 
         else:
             return render_to_response('register.html',{'form':form})