hm, item-search results should be DISTINCT.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 27 Apr 2009 00:15:48 +0000 (00:15 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 27 Apr 2009 00:15:48 +0000 (00:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@397 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/syrup/views/search.py

index 4525f4a..33d1799 100644 (file)
@@ -95,7 +95,7 @@ def search(request, in_course=None):
         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)