Skip to content

Add PolymorphicInlineModelAdmin.get_child_inlines() #576

Open
@piranna

Description

@piranna

The same as PolymorphicParentModelAdmin.get_child_models() allows to dynamically get the child models with base_model.__subclasses__(), I would like to have PolymorphicInlineModelAdmin.get_child_inlines() method that I can overwrite to get the inlines subclasses, and don't need to set them explicitly. This would allows me to have a cleaner code, and also prevent some circular references.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions