You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can configure the pagination size of list views by setting paginate_by in for the table for list views.
In the detail view of an entity, (new) relations are paginated and we can modify the page size here by
adding a per_page parameter in the URL
or
adding a per_page attribute to the Meta class of the EntityRelationsTable
It would be nice to have a uniform configuration method - either per_page in Meta class or paginate_by as an attribute of the table class for tables everywhere in APIS
The text was updated successfully, but these errors were encountered:
I'd suggest to drop the paginate_by attribute. The Meta.per_page attribute is part of django-tables2. I did not know that this Meta attribute exists when I introduced the paginate_by setting. I think it makes more sense to use the upstream solution than a custom one.
If I recall correctly, the Meta.per_page didn't work for the ListViews - (but it worked when I passed per_page via the request params in the query string).
We can configure the pagination size of list views by setting
paginate_by
in for the table for list views.In the detail view of an entity, (new) relations are paginated and we can modify the page size here by
per_page
parameter in the URLor
per_page
attribute to theMeta
class of theEntityRelationsTable
It would be nice to have a uniform configuration method - either
per_page
inMeta
class orpaginate_by
as an attribute of the table class for tables everywhere in APISThe text was updated successfully, but these errors were encountered: