sdi/views.py
branchanoop
changeset 122 39cfefd9641c
parent 120 f9408ab30ace
child 123 dd1a4022d5b1
equal deleted inserted replaced
121:269ce2dfd428 122:39cfefd9641c
   166         user = Registrant.objects.get(id=uid, email=email)
   166         user = Registrant.objects.get(id=uid, email=email)
   167     except Registrant.DoesNotExist:
   167     except Registrant.DoesNotExist:
   168         raise Http404
   168         raise Http404
   169 
   169 
   170     user_info = user.registrantinfo_set.all()[0]
   170     user_info = user.registrantinfo_set.all()[0]
   171     status = user_info.status_of_attending_workshop
   171     status = user_info.status_of_attending_sagedays
   172     if status == "3":
   172     if status == "3":
   173         return render_to_response("attending_wsp.html")
   173         return render_to_response("attending_wsp.html")
   174     elif status != "2":
   174     elif status != "2":
   175         raise Http404
   175         raise Http404
   176 
   176