mbraak / django-mptt-admin

Django-mptt-admin provides a nice Django Admin interface for Mptt models
https://mbraak.github.io/django-mptt-admin/
Other
294 stars 47 forks source link

Tree Structure not coming properly #49

Closed neerajsharma7 closed 9 years ago

neerajsharma7 commented 9 years ago

Hi, I am applying django-mptt-admin on a table which is already exists and have so many records in it already. Problem with django-mptt-admin is you have to create parent first then children.

In my case i have already created children and now i have created parent, in this case children will not come under their parents.

For Example : row id 1,2,3,4 and 5 is children and row id 6 is parent when i am assinging parent to children , its not coming in tree.

mbraak commented 9 years ago

I think this problem is not related to django-mptt-admin, but to django-mptt

neerajsharma7 commented 9 years ago

hmmm ok, let me ask this question there , Thanks :)

neerajsharma7 commented 9 years ago

well problem is coming in "get_tree_from_queryset()" in utils.py , queryset has all the data but when it returns it in tree format, its causing the problem , yeah problem is with tree view only not in grid view