Monday, December 10, 2012

Datastructure using django.

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?

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.

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.

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 post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate