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
Hi! It worked as expected, thanks for the project! I only wanted to know if this pagination could be used with StackedInline instead of TabularInline. This would be perfect for my project.
Also, I don't know if it is a know bug but when you use classes=['collapse'] on the inline, the page numbers doesn't collapse, they keep out of it.
The text was updated successfully, but these errors were encountered:
I managed to add pagination to StackedInline by doing this
classYourAdminInline(InlinePaginated, admin.StackedInline):
model=YourModelper_page=10template=f'{BASE_DIR}/templates/stacked_paginated.html'#path to your template
And then go to your template folder and create stacked_paginated.html like this:
{% include 'admin/edit_inline/stacked.html' %}
<divclass="admin-tabular-inline-pagination">
{% include 'admin/tabular_paginator.html' %}
</div>
Hi! It worked as expected, thanks for the project! I only wanted to know if this pagination could be used with StackedInline instead of TabularInline. This would be perfect for my project.
Also, I don't know if it is a know bug but when you use classes=['collapse'] on the inline, the page numbers doesn't collapse, they keep out of it.
The text was updated successfully, but these errors were encountered: