shinneider/django-admin-inline-paginator

support nested_admin

Opened this issue · 2 comments

will you add support for nested_admin ?

@MahmoodAbuIssa96 can you elaborate what you mean by support?

@diamonddev107

I would also like to see support for the django-nested-admin package
Something like:

from django_admin_inline_paginator.admin import InlinePaginated
from nested_admin.nested import NestedModelAdmin, NestedStackedInline


class NestedStackedInlinePaginated(InlinePaginated, NestedStackedInline):
    pass


class MyModel1StackedInlinePaginatedAdmin(NestedStackedInlinePaginated):
    model = MyModel1
    ...


class MyModel2StackedInlinePaginatedAdmin(NestedStackedInlinePaginated):
    model = MyModel2
    inlines = (MyModel1StackedInlinePaginatedAdmin,)
    ...


@admin.register(MyModel3)
class MyModel3StackedInlinePaginatedAdmin(NestedModelAdmin):
    inlines = (MyModel2StackedInlinePaginatedAdmin,)
    ...