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
I have two proposals:
1 - a pagintate amount to be specified at the registery level, example: @register_model_chooser(per_page=30)
and pass that value to the (
2- A paginate per site, imagin a multi-site project that has a model inherited from BaseSettings (which has site attribute), paginator in the proposal (1) could be affected by the filtering (in template filtering is tested by if statement, checking the requested site_id and the instance site_id in the modal), in a way that the actual shown number of instances are based on the id numbers of all instance in the DB.. but if you implement a paginate per_site as a boolean argument in the proposal (1), would probably solve this issue.
I am not aware of how to implement any of the two proposals above, but you may be able to properly implement both or at least first one
The text was updated successfully, but these errors were encountered:
I have two proposals:
1 - a pagintate amount to be specified at the registery level, example: @register_model_chooser(per_page=30)
and pass that value to the (
wagtailmodelchooser/wagtailmodelchooser/views.py
Line 70 in 53144dd
2- A paginate per site, imagin a multi-site project that has a model inherited from BaseSettings (which has site attribute), paginator in the proposal (1) could be affected by the filtering (in template filtering is tested by if statement, checking the requested site_id and the instance site_id in the modal), in a way that the actual shown number of instances are based on the id numbers of all instance in the DB.. but if you implement a paginate per_site as a boolean argument in the proposal (1), would probably solve this issue.
I am not aware of how to implement any of the two proposals above, but you may be able to properly implement both or at least first one
The text was updated successfully, but these errors were encountered: