On Monday, December 10, 2012 8:15:41 PM UTC+2, Subhodip Biswas wrote: > > Hi all, > > I am trying to implement a tree structure using django. There are two > packages I am looking at mptt and treebeard. Treebeard seems easy. > > I have however two questions: > > 1. With mptt I found that if you have moved one child to another parent > both db and instance is updated but you need to reload or reregister every > time you call such action.Is there a better way of doing this? >
This is normal for django because for site prefarable structure with faster reading than faster writing. 2. If my child have more than one parent, the structure does not remain a > tree anymore. It becomes a graph i guess, How do you handle such situation. > mptt has 'TreeManyToManyField' so I think this is possible > 3. How do I add treebeard or mptt into django admin. If I have one field > name and I register it in admin.py. I get error regarding depth,path, > numchild and name should be present. How do I handle this situation. > For me this works # admin.py from django.contrib import admin admin.site.register(ModelName) Can you post your code and errors > > Apologies for asking so many questions. > > > ------------- > Regards > Subhodip Biswas > > > GPG key : FAEA34AB > Server : pgp.mit.edu > http://subhodipbiswas.wordpress.com > http:/www.fedoraproject.org/wiki/SubhodipBiswas > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/0iUToHxNFLQJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.