[open-ils-commits] r397 - servres/trunk/conifer/syrup/views (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Apr 26 20:15:49 EDT 2009
Author: gfawcett
Date: 2009-04-26 20:15:48 -0400 (Sun, 26 Apr 2009)
New Revision: 397
Modified:
servres/trunk/conifer/syrup/views/search.py
Log:
hm, item-search results should be DISTINCT.
Modified: servres/trunk/conifer/syrup/views/search.py
===================================================================
--- servres/trunk/conifer/syrup/views/search.py 2009-04-27 00:07:11 UTC (rev 396)
+++ servres/trunk/conifer/syrup/views/search.py 2009-04-27 00:15:48 UTC (rev 397)
@@ -95,7 +95,7 @@
else:
results_list = results_list.filter(user_filter_for_items)
- results_list = results_list.order_by('title')
+ results_list = results_list.distinct().order_by('title')
results_len = len(results_list)
paginator = Paginator(results_list, count)
More information about the open-ils-commits
mailing list