sdi/views.py
branchanoop
changeset 146 a18ba6b30c43
parent 144 cb81b0f7e707
child 148 f986e4fee615
equal deleted inserted replaced
145:dec4a9b61534 146:a18ba6b30c43
   135 @login_required
   135 @login_required
   136 def send_sagedays_confirm(request):
   136 def send_sagedays_confirm(request):
   137     """ filter out ppl depending on their status and display accordingly.
   137     """ filter out ppl depending on their status and display accordingly.
   138     """
   138     """
   139 
   139 
   140     attending_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="3")
   140     attending_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3")
   141     not_confirmed_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="2")
   141     not_confirmed_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="2")
   142     not_selected_ppl = Registrant.objects.filter(need_for_python_workshop=True, registrantinfo__status_of_attending_sagedays ="1")
   142     not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="1")
   143 
   143 
   144     user_choices = list(not_selected_ppl) + list(not_confirmed_ppl)
   144     user_choices = list(not_selected_ppl) + list(not_confirmed_ppl)
   145     form = UserSelectForm(user_choices, request.POST)
   145     form = UserSelectForm(user_choices, request.POST)
   146 
   146 
   147     if request.method == "POST" and form.is_valid():
   147     if request.method == "POST" and form.is_valid():