Re: recursive relationship in model

2008-10-16 Thread coderb
Thanks DJ and Bruno for the super quick responses On Oct 16, 6:00 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 16 oct, 18:52, coderb <[EMAIL PROTECTED]> wrote: > > > > > hi all, > > > I'm having trouble with a category table when trying to add rows in > > admin > > > my model is a Cate

Re: recursive relationship in model

2008-10-16 Thread bruno desthuilliers
On 16 oct, 18:52, coderb <[EMAIL PROTECTED]> wrote: > hi all, > > I'm having trouble with a category table when trying to add rows in > admin > > my model is a Category table with a self reference using 'parent' > which enables unlimited depth of categories. Its defined as follows: > > class Cat

Re: recursive relationship in model

2008-10-16 Thread Dj Gilcrease
Here is my Category model (With generic relations) that has unlimited depth and it works http://dpaste.com/hold/84881/ It has generic relations since so many things need to be categorized and I didnt think writing a category model for each thing followed the DRY principle, but if you dont need t