equal
deleted
inserted
replaced
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_sagedays |
171 status = user_info.status_of_attending_workshop |
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 |
204 |
204 |
205 user_info = user.registrantinfo_set.all()[0] |
205 user_info = user.registrantinfo_set.all()[0] |
206 status = user_info.status_of_attending_sagedays |
206 status = user_info.status_of_attending_sagedays |
207 if status == "3": |
207 if status == "3": |
208 return render_to_response("attending_sgd.html") |
208 return render_to_response("attending_sgd.html") |
209 elif status != 2: |
209 elif status != "2": |
210 raise Http404 |
210 raise Http404 |
211 |
211 |
212 if request.method == "POST": |
212 if request.method == "POST": |
213 participant_info = ParticipantInfo() |
213 participant_info = ParticipantInfo() |
214 participant_info.participant = user |
214 participant_info.participant = user |