Django Admin: Dynamically add inlines based on parent FK

33 views
Skip to first unread message

Michael H

unread,
Apr 12, 2015, 3:17:19 AM4/12/15
to django...@googlegroups.com
Hello,

I have a model (FooParent) which has an FK (FooFk) and an inline model (BazChildInline).

When a user selects a FooFk value and then saves FooParent, I want to use the value of FooFk to query my app, get related results, and dynamically add inline entries to BazChildInline.

I'm not sure where to start … Pseudo code and/or kick in the right direction would be greatly appreciated. :)

Please let me know if I can explain my situation better.

Thanks!
m
Reply all
Reply to author
Forward
0 new messages