Answer the question
In order to leave comments, you need to log in
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
level1elem
level2elem1
level3elem1
level2elem2
level3elem2
level3elem3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question