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":