Heya!
I have three models:
Variable
, which hasGroup
as a foreign keyGroup
, which hasSet
as a foreign keySet
I want to create a form that lets user create a new Set based on existing Set. Only things that user is able to modify are the Set name and Variable values.
This has given me an idea of using inlineformset_factory
to access models' children. Sadly, all the examples I found go only one layer down.
Is there any way to access the Variables of a Set through inlineformset_factory
?
If not - what is a good way to accomplish my goal?
Thank you.