sdi/views.py
branchanoop
changeset 100 17e35783c8d6
parent 99 fdaed2cf5820
child 102 ef0012eb7695
equal deleted inserted replaced
99:fdaed2cf5820 100:17e35783c8d6
   137     try:
   137     try:
   138         user = Registrant.objects.get(id=uid, email=email)
   138         user = Registrant.objects.get(id=uid, email=email)
   139     except Registrant.DoesNotExist:
   139     except Registrant.DoesNotExist:
   140         raise Http404
   140         raise Http404
   141 
   141 
   142     status = user.registrationinfo.status_of_attending_workshop
   142     user_info = user.registrantinfo_set.all()[0]
       
   143     status = user_info.status_of_attending_workshop
   143     if status == "3":
   144     if status == "3":
   144         return render_to_response("attending_wsp.html")
   145         return render_to_response("attending_wsp.html")
   145     elif status != "2":
   146     elif status != "2":
   146         raise Http404
   147         raise Http404
   147 
   148