equal
deleted
inserted
replaced
113 send a confirmation mail to them if not sent. |
113 send a confirmation mail to them if not sent. |
114 """ |
114 """ |
115 |
115 |
116 matches = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_workshop="1") |
116 matches = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_workshop="1") |
117 if request.method == "POST": |
117 if request.method == "POST": |
118 pass |
118 form = UserSelectForm(matches, request.POST) |
|
119 if form.is_valid(): |
|
120 selected_users = form.cleaned_data['selected_users'] |
|
121 return render_to_response("sent_wsp_confirm.html", {"selected_users":selected_users}) |
|
122 else: |
|
123 return render_to_response("send_workshop_confirm.html", {"matches":matches}) |
119 else: |
124 else: |
120 form = UserSelectForm(matches) |
125 return render_to_response("send_workshop_confirm.html", {"matches":matches}) |
121 return render_to_response("send_workshop_confirm.html", {"form":form}) |
|
122 |
126 |
123 def admin_login(request): |
127 def admin_login(request): |
124 """ basic login. |
128 """ basic login. |
125 """ |
129 """ |
126 |
130 |