--- a/sdi/views.py Fri Jul 02 17:32:15 2010 +0530
+++ b/sdi/views.py Wed Jul 14 10:16:53 2010 +0530
@@ -47,7 +47,8 @@
if form.is_valid():
data = form.cleaned_data
need_workshop = data['need_for_python_workshop']
- db_query = "Registrant.objects.filter(need_for_python_workshop=%s)"%need_workshop
+ acco_required = data['need_accomodation']
+ db_query = "Registrant.objects.filter(need_for_python_workshop=%s, acco_required=%s)"%(need_workshop, acco_required)
topics_include, topics_exclude = data['topics_interested']
for number in topics_include: