shinneider / django-admin-inline-paginator

MIT License
127 stars 21 forks source link

No pagination buttons are shown. #32

Closed true-ant closed 1 year ago

true-ant commented 1 year ago

I installed django-admin-inline-paginator 0.4.0 and I use python 3.10.11,

class ModelWithFKAdminInline(ReadOnlyAdminMixin, NestedTabularInline, TabularInlinePaginated):
    fields = (...)
    per_page = 5
    model = ModelWithFK

It shows 5 items, but no pagination buttons are shown that only first 5 items are shown.

diamonddev107 commented 1 year ago

I think you need to customize template file to have pagination. Or you can have only TabularInlinePaginated.

true-ant commented 1 year ago

Thanks @diamonddev107 for your reply. I will check that.

true-ant commented 1 year ago

Awesome!!! I customized templates\nesting\admin\inlines\tabular.html with pagination and it works well for me.