equal
deleted
inserted
replaced
5 |
5 |
6 from django.contrib.auth import authenticate, login, logout |
6 from django.contrib.auth import authenticate, login, logout |
7 |
7 |
8 from sage_days.sdi.models import Registrant, RegistrantInfo, ParticipantInfo |
8 from sage_days.sdi.models import Registrant, RegistrantInfo, ParticipantInfo |
9 from sage_days.sdi.forms import RegisterForm, SearchForm, EmailForm, LoginForm, UserSelectForm, ParticipantInfoForm |
9 from sage_days.sdi.forms import RegisterForm, SearchForm, EmailForm, LoginForm, UserSelectForm, ParticipantInfoForm |
10 from sage_days.sdi.events import send_reg_complete_mail, mail_invi, send_wsp_ptc_confirm |
10 from sage_days.sdi.events import send_reg_complete_mail, mail_invi, send_sgd_ptc_confirm |
11 from sage_days.settings import APACHE_URL_PREFIX as aup |
11 from sage_days.settings import APACHE_URL_PREFIX as aup |
12 |
12 |
13 def register(request): |
13 def register(request): |
14 """ The user register page. |
14 """ The user register page. |
15 """ |
15 """ |
149 for user in selected_users: |
149 for user in selected_users: |
150 user_info = user.registrantinfo_set.all()[0] |
150 user_info = user.registrantinfo_set.all()[0] |
151 user_info.status_of_attending_sagedays = "2" |
151 user_info.status_of_attending_sagedays = "2" |
152 user_info.save() |
152 user_info.save() |
153 |
153 |
154 send_wsp_ptc_confirm(user) |
154 send_sgd_ptc_confirm(user) |
155 |
155 |
156 return render_to_response("sent_sgd_confirm.html", {"selected_users":selected_users}) |
156 return render_to_response("sent_sgd_confirm.html", {"selected_users":selected_users}) |
157 else: |
157 else: |
158 return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, |
158 return render_to_response("send_sgd_cnf.html", {"attending":attending_ppl, |
159 "not_confirmed":not_confirmed_ppl, |
159 "not_confirmed":not_confirmed_ppl, |