Like a many other users here i have been thwarted in trying to get nested inline forms working in the django admin.
I have a data structure that is roughly
Group - Some data fields
Patrol - Foreign key to groups - Some different data fields
Scout - Foreign key to patrol - Even more data fields
Ideally when i go to edit a Group
record, i would have the admin interface present the Patrol
instances linked to scout shown though StackedInline
and then have the Scout
records related to each of these patrols show up inside an inner TabularInline
however this is not currently possible, i have spent a large amount of time trying to port over a patch from two years ago but have had little success.
As far as i see it i have three options open to me
- Persist with trying to get this patch from an age ago to work
- List patrol objects within a
TabularInline
without the scout relation and provide an edit patrol members link that pops up a form to edit a patrol in a new window. - Just keep it simple and make users of the system go back and forth between editing group and patrols
Option 2 is what currently looks the most promising but i need advice as to how i could pop up an extra window to edit the patrol in.
Any advice on how to do this, how to get nested inline fields to work or another way in general would be much appreciated.