sdi/views.py
branchanoop
changeset 123 dd1a4022d5b1
parent 122 39cfefd9641c
child 124 d4a7644e7fe8
--- a/sdi/views.py	Sat Jul 17 01:05:47 2010 +0530
+++ b/sdi/views.py	Sat Jul 17 01:08:40 2010 +0530
@@ -168,7 +168,7 @@
         raise Http404
 
     user_info = user.registrantinfo_set.all()[0]
-    status = user_info.status_of_attending_sagedays
+    status = user_info.status_of_attending_workshop
     if status == "3":
         return render_to_response("attending_wsp.html")
     elif status != "2":
@@ -206,7 +206,7 @@
     status = user_info.status_of_attending_sagedays
     if status == "3":
         return render_to_response("attending_sgd.html")
-    elif status != 2:
+    elif status != "2":
         raise Http404
 
     if request.method == "POST":