branch | anoop |
changeset 100 | 17e35783c8d6 |
parent 99 | fdaed2cf5820 |
child 102 | ef0012eb7695 |
--- 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":