group inlines in django admin
- by pablo
Hi
I have a two models, Model1 and Model2.
Model2 has a FK to Model1 and FK to iteself.
In the admin I show Model2 as inlines in Model1 change_form.
I want to modify the way the inlines are shown in the admin.
I need to group all the instances that have the same parent_model2 and display them as
a readonly field with a string of 'childs' in the…