add distinct
This commit is contained in:
parent
6b6fba059e
commit
ce8bc43831
|
@ -194,7 +194,7 @@ def shipList(request):
|
||||||
if port:
|
if port:
|
||||||
qset = qset.filter(port__icontains=port)
|
qset = qset.filter(port__icontains=port)
|
||||||
if goods:
|
if goods:
|
||||||
qset = qset.filter(good__description_string_trans__icontains=goods)
|
qset = qset.filter(good__description_string_trans__icontains=goods).distinct()
|
||||||
# if country:
|
# if country:
|
||||||
# qset = qset.filter(country__icontains=country)
|
# qset = qset.filter(country__icontains=country)
|
||||||
paginator = Paginator(qset, page_size)
|
paginator = Paginator(qset, page_size)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user