fixed a bug that arises when a query does not have any parameters to filter anoop
authornishanth
Wed, 14 Jul 2010 11:51:05 +0530
branchanoop
changeset 80 c200156c80a9
parent 79 064ff60025d9
child 81 8218d96eb765
fixed a bug that arises when a query does not have any parameters to filter
sdi/views.py
--- a/sdi/views.py	Wed Jul 14 11:23:51 2010 +0530
+++ b/sdi/views.py	Wed Jul 14 11:51:05 2010 +0530
@@ -80,6 +80,8 @@
             elif start_likeliness:
                 db_query += '.filter(likeliness_of_attending__exact="%s")'%start_likeliness
 
+            db_query += ".all()"
+
             matches = eval(db_query)
             return render_to_response("list_stats.html", {"form":form, 'matches':matches})
         else: