Hi folks,

I'm looking for a solution/tip for the following problem: I need to
store hierarchical data, but, with two different kinds of objects
(groups and items). I googled around and found the often suggested
mptt package. It looks really great, but I'm not sure about the best
way to save objects of different models with it.

One idea is, to build the hierarchical structure with one model and
mptt and in it, I define two ForeignKeys to the concrete data objects
I want to store (ForeignKey(Group) and Foreignkey(Item)). But this
sounds a bit strange to me. I think there should be a much smarter
way.

Any ideas? Many thanks in advance.
Peter

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to