123 else: |
123 else: |
124 return render_to_response("send_workshop_confirm.html", {"matches":matches}) |
124 return render_to_response("send_workshop_confirm.html", {"matches":matches}) |
125 else: |
125 else: |
126 return render_to_response("send_workshop_confirm.html", {"matches":matches}) |
126 return render_to_response("send_workshop_confirm.html", {"matches":matches}) |
127 |
127 |
|
128 @login_required |
|
129 def send_sagedays_confirm(request): |
|
130 """ filter out ppl depending on their status and display accordingly. |
|
131 """ |
|
132 |
|
133 attending_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="3") |
|
134 not_confirmed_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="2") |
|
135 not_selected_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="1") |
|
136 |
|
137 user_choices = list(attending_ppl) + list(not_confirmed_ppl) |
|
138 form = UserSelectForm(user_choices, request.POST) |
|
139 |
|
140 if request.method == "POST" and form.is_valid(): |
|
141 pass |
|
142 else: |
|
143 render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, |
|
144 "not_confirmed":not_confirmed_ppl, |
|
145 "not_selected":not_selected_ppl, |
|
146 } |
|
147 |
|
148 |
128 def confirm_wsp_participation(request, uid): |
149 def confirm_wsp_participation(request, uid): |
129 """ match id versus email and take lappy details. |
150 """ match id versus email and take lappy details. |
130 """ |
151 """ |
131 |
152 |
132 try: |
153 try: |