I have a model that have a field like this:
parent = TreeForeignKey('self', null=True, blank=True, related_name='children')
I want to add parent to a select box and then with onclick, select the second level children.
parent1
-section1
--child1
parent2
-section2
--child2
I have tried all things. (level__gt), (level__lt) ....I have read the django-mptt document. How can I fetch second child? I dont want use ul and li. I want to add all parents in a select and then fetch second children with clik to parents.
Any help would be appreciated.