From ce8bc4383101490b03801674689e16048809da8c Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 22 Apr 2012 16:25:10 +0530 Subject: [PATCH] add distinct --- manifests/ships/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/ships/views.py b/manifests/ships/views.py index 5f543a2..48fd54a 100644 --- a/manifests/ships/views.py +++ b/manifests/ships/views.py @@ -194,7 +194,7 @@ def shipList(request): if port: qset = qset.filter(port__icontains=port) if goods: - qset = qset.filter(good__description_string_trans__icontains=goods) + qset = qset.filter(good__description_string_trans__icontains=goods).distinct() # if country: # qset = qset.filter(country__icontains=country) paginator = Paginator(qset, page_size)