From: gfawcett Date: Mon, 27 Apr 2009 00:15:48 +0000 (+0000) Subject: hm, item-search results should be DISTINCT. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4a9459a0b78670757361b470f22c8b6e922adb00;p=syrup%2Fmasslnc.git 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 --- 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)