E
E
enth2016-08-29 14:26:28
Django
enth, 2016-08-29 14:26:28

Django admin how to make model tree?

Good afternoon. Recommend a tool for extending the django admin panel and perhaps a ready-made recipe for the task.
Description:
There are several models related as follows:
Stores model => Product Category model => Products model => Product Actions model, etc. those. there is a tree-like relationship between the models.
Task:
The list of stores is displayed on the main page of the admin panel, you can go to each store and see the "children" of the store (model) that are linked to it by a foreign key (Product Category). Also go to each "child" object and see also its children associated with a foreign key.
Or something similar to a tree, but not for a separate model, but for applications (or models in general).
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny Kravchenko, 2016-08-29
@Arseny_Info

Maybe InlineModelAdmin will do

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question