Skip to content

Conversation

@aviyadeveloper
Copy link

This PR enforces that the class of a formset given to a paginated inline (determined by an inline having the per_page prop) is either PaginationInlineFormSet or PaginationGenericInlineFormSet to avoid users passing the default base django admin formset classes.

Note:

Current behavior still breaks but with an explicit error and explanation how to fix the issue. This is done because simply skipping would lead to no pagination and probable confusion by the user.

fixes: #1402

@aviyadeveloper aviyadeveloper force-pushed the require_paginated_formsets_for_paginated_inlines branch from 2d6e3dc to f3be146 Compare September 5, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BaseFormSet.__init__() got an unexpected keyword argument 'request'

2 participants