sdi/views.py
branchanoop
changeset 79 064ff60025d9
parent 77 616a0357b2c9
child 80 c200156c80a9
--- a/sdi/views.py	Wed Jul 14 11:15:44 2010 +0530
+++ b/sdi/views.py	Wed Jul 14 11:23:51 2010 +0530
@@ -46,9 +46,11 @@
         form = SearchForm(request.POST)
         if form.is_valid():
             data = form.cleaned_data
-            need_workshop = data['need_for_python_workshop']
-            acco_required = data['need_accomodation']
-            db_query = "Registrant.objects.filter(need_for_python_workshop=%s, acco_required=%s)"%(need_workshop, acco_required)
+
+            #need_workshop = data['need_for_python_workshop']
+            #acco_required = data['need_accomodation']
+            #db_query = "Registrant.objects.filter(need_for_python_workshop=%s, acco_required=%s)"%(need_workshop, acco_required)
+            db_query = "Registrant.objects"
 
             topics_include, topics_exclude = data['topics_interested']
             for number in topics_include: