# HG changeset patch # User Madhusudan.C.S # Date 1281084800 -19800 # Node ID e76c567908726e3c0781f104119def7013957688 # Parent ffe5ef840fde198d8adbecec9f01a1e1c4f98df4 Made style changes. diff -r ffe5ef840fde -r e76c56790872 sdi/views.py --- a/sdi/views.py Fri Aug 06 14:22:50 2010 +0530 +++ b/sdi/views.py Fri Aug 06 14:23:20 2010 +0530 @@ -176,12 +176,15 @@ and let the admin decide. """ - rejected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", - registrantinfo__status_of_accomodation="4") - selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", - registrantinfo__status_of_accomodation="3") - not_selected_ppl = Registrant.objects.filter(registrantinfo__status_of_attending_sagedays ="3", - registrantinfo__status_of_accomodation="1") + rejected_ppl = Registrant.objects.filter( + registrantinfo__status_of_attending_sagedays ="3", + registrantinfo__status_of_accomodation="3") + selected_ppl = Registrant.objects.filter( + registrantinfo__status_of_attending_sagedays ="3", + registrantinfo__status_of_accomodation="2") + not_selected_ppl = Registrant.objects.filter( + registrantinfo__status_of_attending_sagedays ="3", + registrantinfo__status_of_accomodation="1") user_choices = list(rejected_ppl) + list(not_selected_ppl) form = SendAccoForm(user_choices, request.POST) @@ -193,15 +196,17 @@ user_info = user.registrantinfo_set.all()[0] user_info.status_of_accomodation = "3" user_info.save() - - send_acco_confirm_mail(user, message) - - return render_to_response("sent_acco_confirm.html", {"selected_users":selected_users}) + + send_acco_confirm_mail(user, message) + + return render_to_response("sent_acco_confirm.html", + {"selected_users":selected_users}) else: - return render_to_response("send_acco_cnf.html", {"rejected": rejected_ppl, - "selected":selected_ppl, - "not_selected":not_selected_ppl, - }) + return render_to_response("send_acco_cnf.html", + {"rejected": rejected_ppl, + "selected":selected_ppl, + "not_selected":not_selected_ppl, + }) def confirm_wsp_participation(request, uid): """ match id versus email and take lappy details.