How to fetch hierarchical entries from database using python

26 Views Asked by At

I have 3 interdependent dropdowns in a django project, Level1, Level2 and Level3. These levels may increase. The mapping of these dropdowns is available in below format: Table Name is LevelMapping enter image description here

From the above mapping, I want to create a mapping as follows: Team | Level1 | Level2 | Level3 enter image description here

How to get the mapping using recursion in python django?

0

There are 0 best solutions below