Apr-02-2020, 06:42 AM
Hey
I have created a model in django, for categories - with a parent child structure.
But how can I change the look in the admin, of that dropdown?
So that when creating a new category. And I choose the parent category, the dropdown will look something like this:
Parent 1
- Child 1
- Child 2
Parent 2
- Child 1
Any input on this?
I have created a model in django, for categories - with a parent child structure.
But how can I change the look in the admin, of that dropdown?
So that when creating a new category. And I choose the parent category, the dropdown will look something like this:
Parent 1
- Child 1
- Child 2
Parent 2
- Child 1
Any input on this?