From 4a9459a0b78670757361b470f22c8b6e922adb00 Mon Sep 17 00:00:00 2001 From: gfawcett Date: Mon, 27 Apr 2009 00:15:48 +0000 Subject: [PATCH] hm, item-search results should be DISTINCT. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@397 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/syrup/views/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conifer/syrup/views/search.py b/conifer/syrup/views/search.py index 4525f4a..33d1799 100644 --- a/conifer/syrup/views/search.py +++ b/conifer/syrup/views/search.py @@ -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) -- 2.11.0