# HG changeset patch # User nishanth # Date 1279186123 -19800 # Node ID 17e35783c8d681de7415b34f4e39f4eabc9c662d # Parent fdaed2cf58208d488c2f7e630feb8c72752a005b fixed a bug diff -r fdaed2cf5820 -r 17e35783c8d6 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":