fixed a bug anoop
authornishanth
Thu, 15 Jul 2010 14:58:43 +0530
branchanoop
changeset 100 17e35783c8d6
parent 99 fdaed2cf5820
child 101 9def10724853
fixed a bug
sdi/views.py
--- a/sdi/views.py	Thu Jul 15 14:51:22 2010 +0530
+++ b/sdi/views.py	Thu Jul 15 14:58:43 2010 +0530
@@ -139,7 +139,8 @@
     except Registrant.DoesNotExist:
         raise Http404
 
-    status = user.registrationinfo.status_of_attending_workshop
+    user_info = user.registrantinfo_set.all()[0]
+    status = user_info.status_of_attending_workshop
     if status == "3":
         return render_to_response("attending_wsp.html")
     elif status != "2":