uh, sort
This commit is contained in:
parent
efe73aec2e
commit
22d303580f
|
@ -205,7 +205,7 @@ def shipList(request):
|
|||
qset = qset.filter(good__description_string_trans__icontains=goods).distinct()
|
||||
# if country:
|
||||
# qset = qset.filter(country__icontains=country)
|
||||
qset = qset.sort_by('date')
|
||||
qset = qset.order_by(sort)
|
||||
paginator = Paginator(qset, page_size)
|
||||
results = paginator.page(page)
|
||||
no_of_results = qset.count()
|
||||
|
|
Loading…
Reference in New Issue
Block a user