# HG changeset patch # User nishanth # Date 1279088465 -19800 # Node ID c200156c80a9737ba47bf21de492a9d1b7a39fea # Parent 064ff60025d9e888576c994f527bd9bdd6879312 fixed a bug that arises when a query does not have any parameters to filter diff -r 064ff60025d9 -r c200156c80a9 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: