Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-discover child models and inlines #582

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

piranna
Copy link

@piranna piranna commented Feb 29, 2024

Allow by default to inspect for Model and Inline subclasses to populate the admin forms. Also raise a proper exception in case there are no child models defined.

Fixes #576.

@j-antunes
Copy link
Contributor

Could you also add a unit test?

@piranna
Copy link
Author

piranna commented Feb 29, 2024

Could you also add a unit test?

Where could I add them? polymorphic/tests folder?

@j-antunes
Copy link
Contributor

@piranna - That's a good place!

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.

Add PolymorphicInlineModelAdmin.get_child_inlines()
2 participants