add distinct
This commit is contained in:
parent
6b6fba059e
commit
ce8bc43831
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user