wcs: add setting to change user forms retrieval API limit (#73278)

This commit is contained in:
Frédéric Péters 2023-01-11 14:34:15 +01:00 committed by Gitea
parent 357295ca42
commit a172e0a0bd
2 changed files with 4 additions and 1 deletions

View File

@ -510,7 +510,7 @@ class WcsCurrentFormsCell(CategoriesAndWcsSiteValidityMixin, CategoriesFiltering
url += '&include-accessible=on'
if self.include_drafts:
url += '&include-drafts=on'
url += '&limit=100&sort=desc'
url += '&limit=%s&sort=desc' % settings.WCS_USER_FORMS_LIMIT
return url
@property

View File

@ -325,6 +325,9 @@ COMBO_ASSET_SLOTS = {}
# XXX deprecated
WCS_CATEGORY_ASSET_SLOTS = {}
# maximum number of forms retrieved in user forms cell
WCS_USER_FORMS_LIMIT = 100
# XXX deprecated
WCS_FORM_ASSET_SLOTS = {}