summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 1553c7475e..338b8c36f2 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -2746,7 +2746,7 @@ if toastermain.settings.MANAGED:
2746 # define here what parameters the view needs in the GET portion in order to 2746 # define here what parameters the view needs in the GET portion in order to
2747 # be able to display something. 'count' and 'page' are mandatory for all views 2747 # be able to display something. 'count' and 'page' are mandatory for all views
2748 # that use paginators. 2748 # that use paginators.
2749 (pagesize, orderby) = _get_parameters_values(request, 10, 'name:+') 2749 (pagesize, orderby) = _get_parameters_values(request, 100, 'name:+')
2750 mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby }; 2750 mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby };
2751 retval = _verify_parameters( request.GET, mandatory_parameters ) 2751 retval = _verify_parameters( request.GET, mandatory_parameters )
2752 if retval: 2752 if retval:
@@ -2775,6 +2775,7 @@ if toastermain.settings.MANAGED:
2775 if len(to_rm) > 0: 2775 if len(to_rm) > 0:
2776 queryset_all = queryset_all.exclude(layer_version__in=to_rm) 2776 queryset_all = queryset_all.exclude(layer_version__in=to_rm)
2777 2777
2778 machine_info = _build_page_range(Paginator(queryset_all, request.GET.get('count', 100)),request.GET.get('page', 1))
2778 2779
2779 context = { 2780 context = {
2780 'objects' : machine_info, 2781 'objects' : machine_info,