Re: Tree hierarchy with prefetch_related()?

2012-05-15 Thread Carsten Fuchs
Dear Russell, thank you very much for your reply, with all the background info and details! It was very helpful! :-D Best regards, Carsten Am 15.05.2012 01:45, schrieb Russell Keith-Magee: On Tue, May 15, 2012 at 1:20 AM, Carsten Fuchs wrote: Dear Django group, I've never worked with h

Re: Tree hierarchy with prefetch_related()?

2012-05-14 Thread Russell Keith-Magee
On Tue, May 15, 2012 at 1:20 AM, Carsten Fuchs wrote: > Dear Django group, > > I've never worked with hierarchic database models before, and would be very > grateful for your advice: > > In my application I need a hierarchy of objects, e.g. > > > class Account(models.Model): >    parent = models.F

Tree hierarchy with prefetch_related()?

2012-05-14 Thread Carsten Fuchs
Dear Django group, I've never worked with hierarchic database models before, and would be very grateful for your advice: In my application I need a hierarchy of objects, e.g. class Account(models.Model): parent = models.ForeignKey('self', null=True, blank=True) name = models.CharFi

Re: tree hierarchy

2010-11-23 Thread Manoj Kumar
hi How about the people in level 2 whether they can add more peoples?? On Tue, Nov 23, 2010 at 4:12 PM, rattanpriya bhasin < bhasin.rattanpr...@gmail.com> wrote: > Hi > I want to implement a tree hierarchy of customers in my django application. > If i want to add custome

tree hierarchy

2010-11-23 Thread rattanpriya bhasin
Hi I want to implement a tree hierarchy of customers in my django application. If i want to add customers then manager at root can add cistomers of gold class(say Level 1) and further customer 1 can add people at (level 2 ) in tree.This is howi want my customer tree hierarchy .Can any body give me