Python Forum

Full Version: Django admin form with parent child
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?