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()
|
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)
|
||||||
qset = qset.sort_by('date')
|
qset = qset.order_by(sort)
|
||||||
paginator = Paginator(qset, page_size)
|
paginator = Paginator(qset, page_size)
|
||||||
results = paginator.page(page)
|
results = paginator.page(page)
|
||||||
no_of_results = qset.count()
|
no_of_results = qset.count()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user