wcs: limit user forms cell to 100 items (#35407)

This commit is contained in:
Frédéric Péters 2019-08-14 16:26:31 +02:00
parent eb8674866a
commit f20ce6ecdc
1 changed files with 2 additions and 2 deletions

View File

@ -320,8 +320,8 @@ class WcsCurrentFormsCell(WcsUserDataBaseCell):
if user:
user_name_id = user.get_name_id()
if user_name_id:
return '/api/users/%s/forms' % user_name_id
return '/api/user/forms'
return '/api/users/%s/forms?limit=100&sort=desc' % user_name_id
return '/api/user/forms?limit=100&sort=desc'
@property
def template_name(self):