summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 9217d8a100..c16fc2219f 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -266,8 +266,10 @@ def _get_queryset(model, queryset, filter_string, search_term, ordering_string,
266# if the value is given explicitly as a GET parameter it will be the first selected, 266# if the value is given explicitly as a GET parameter it will be the first selected,
267# otherwise the cookie value will be used. 267# otherwise the cookie value will be used.
268def _get_parameters_values(request, default_count, default_order): 268def _get_parameters_values(request, default_count, default_order):
269 pagesize = request.GET.get('count', request.COOKIES.get('count', default_count)) 269 from django.core.urlresolvers import resolve
270 orderby = request.GET.get('orderby', request.COOKIES.get('orderby', default_order)) 270 current_url = resolve(request.path_info).url_name
271 pagesize = request.GET.get('count', request.session.get('%s_count' % current_url, default_count))
272 orderby = request.GET.get('orderby', request.session.get('%s_orderby' % current_url, default_order))
271 return (pagesize, orderby) 273 return (pagesize, orderby)
272 274
273 275