This commit is contained in:
Sanj 2012-04-22 17:34:31 +05:30
parent efe73aec2e
commit 22d303580f

View File

@ -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()