B
B
Boldy2015-01-15 09:19:55
Django
Boldy, 2015-01-15 09:19:55

How to remove hyphens in mptt.TreeForeignKey in dropdown list?

When a parent is selected, hyphens are added at the beginning of each element, like this

level1elem
---level2elem1
------level3elem1
---level2elem2
------level3elem2
------level3elem3

I want it to be displayed like this:
level1elem
level2elem1
level3elem1
level2elem2
level3elem2
level3elem3

What needs to be done for this?

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