P
P
PsyCore2018-09-03 20:21:29
Django
PsyCore, 2018-09-03 20:21:29

What is the best way to link objects in a large parent-child tree?

It is necessary that each object stores the id of all its ancestors (each level has its own field), and each parent - the id of all its children (all in one field)
Manually, in the form of a model, the administrator selects only the closest ancestor, the rest of the chain is written independently
How is it better do?
PS All objects belong to the same model

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question