removed the need_python_workshop and need_acco fields since they are very confusing anoop
authornishanth
Wed, 14 Jul 2010 11:23:51 +0530
branchanoop
changeset 79 064ff60025d9
parent 78 e84f56d4968e
child 80 c200156c80a9
removed the need_python_workshop and need_acco fields since they are very confusing
sdi/forms.py
sdi/views.py
--- a/sdi/forms.py	Wed Jul 14 11:15:44 2010 +0530
+++ b/sdi/forms.py	Wed Jul 14 11:23:51 2010 +0530
@@ -40,8 +40,8 @@
     knowledge_of_python = forms.CharField(required=False, help_text=" Give single number from 1 to 5 or a range seperated by hyphen")
     knowledge_of_sage = forms.CharField(required=False, help_text=" Give single number from 1 to 5 or a range seperated by hyphen")
     likeliness_of_attending = forms.CharField(required=False, help_text=" Give single number from 1 to 5 or a range seperated by hyphen")
-    need_for_python_workshop = forms.BooleanField(required=False)
-    need_accomodation = forms.BooleanField(required=False)
+    #need_for_python_workshop = forms.BooleanField(required=False)
+    #need_accomodation = forms.BooleanField(required=False)
 
     def clean_topics_interested(self):
         """ split and return include list and exclude list
--- 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: