mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
bitbake: toaster: Set the machines page default pagesize to 100
This brings it into line with the all layers and targets pages (Bitbake rev: 7c862ae4e3c3a00f2b37c2272007ce64304359bd) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
baa38a14c7
commit
208f40dc05
@@ -2746,7 +2746,7 @@ if toastermain.settings.MANAGED:
|
||||
# define here what parameters the view needs in the GET portion in order to
|
||||
# be able to display something. 'count' and 'page' are mandatory for all views
|
||||
# that use paginators.
|
||||
(pagesize, orderby) = _get_parameters_values(request, 10, 'name:+')
|
||||
(pagesize, orderby) = _get_parameters_values(request, 100, 'name:+')
|
||||
mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby };
|
||||
retval = _verify_parameters( request.GET, mandatory_parameters )
|
||||
if retval:
|
||||
@@ -2775,6 +2775,7 @@ if toastermain.settings.MANAGED:
|
||||
if len(to_rm) > 0:
|
||||
queryset_all = queryset_all.exclude(layer_version__in=to_rm)
|
||||
|
||||
machine_info = _build_page_range(Paginator(queryset_all, request.GET.get('count', 100)),request.GET.get('page', 1))
|
||||
|
||||
context = {
|
||||
'objects' : machine_info,
|
||||
|
||||
Reference in New Issue
Block a user