# HG changeset patch # User nishanth # Date 1279808436 -19800 # Node ID c7c5c727a483c6a638b0e0c9ce92e079d0a4923e # Parent 2f01af211af9d9a241e8bb2dc33b924f68c8af04 removed old template and copied send_sgd_cnf as send_wsp_cnf since both are same and fixed a bug in view diff -r 2f01af211af9 -r c7c5c727a483 sdi/views.py --- a/sdi/views.py Thu Jul 22 19:34:24 2010 +0530 +++ b/sdi/views.py Thu Jul 22 19:50:36 2010 +0530 @@ -129,7 +129,7 @@ form = UserSelectForm(choices, request.POST) if request.method == "POST" and form.is_valid(): selected_users = form.cleaned_data['selected_users'] - for u in selected_users: + for user in selected_users: user_info = user.registrantinfo_set.all()[0] user_info.status_of_attending_workshop = "2" user_info.save() diff -r 2f01af211af9 -r c7c5c727a483 templates/send_workshop_confirm.html --- a/templates/send_workshop_confirm.html Thu Jul 22 19:34:24 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -{% extends 'base.html' %} -{% block title %} -Workshop Confirmaton Mail -{% endblock %} -{% block content %} -
-{% endblock %} diff -r 2f01af211af9 -r c7c5c727a483 templates/send_wsp_cnf.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/send_wsp_cnf.html Thu Jul 22 19:50:36 2010 +0530 @@ -0,0 +1,56 @@ +{% extends 'base.html' %} +{% block title %} +Send Workshop Participation Confirmation +{% endblock %} +{% block content %} + +{{m}} | +{{m.gender}} | +{{m.profession}} | +{{m.affiliated_to}} | ++{% if m.registrantinfo_set.all.0.has_laptop_for_workshop %} +True +{% else %} +False +{% endif %} + | +