Re: Converting relational data to hiechical data

2008-02-22 Thread [EMAIL PROTECTED]
Exactly. Django-mptt is very easy to use, and takes away a lot the pain trying to manage hierarchical data in a relational database (and django-mptt does it in an efficient manner). Write if you have any problems with it, and I can help out. Cheers, Lars On Feb 21, 8:25 pm, "Ramiro Morales"

Re: Converting relational data to hiechical data

2008-02-21 Thread Ramiro Morales
On Thu, Feb 21, 2008 at 10:22 AM, shabda <[EMAIL PROTECTED]> wrote: > > I have a model like > > class Task(models.Model): > name = Models.CharField(max_length = 100) > parent = models.ForeignKey('Task', null = True) > > Using this model say I have got a table like, > > Task > --- >

Re: Converting relational data to hiechical data

2008-02-21 Thread shabda
That would help once I get the relational data to a hierarchical list, and that is the difficult part! On Feb 21, 10:59 pm, Brian Luft <[EMAIL PROTECTED]> wrote: > http://www.djangoproject.com/documentation/templates/#unordered-list > > On Feb 21, 4:22 am, shabda <[EMAIL PROTECTED]> wrote: > > >

Re: Converting relational data to hiechical data

2008-02-21 Thread Brian Luft
http://www.djangoproject.com/documentation/templates/#unordered-list On Feb 21, 4:22 am, shabda <[EMAIL PROTECTED]> wrote: > I have a model like > > class Task(models.Model): > name = Models.CharField(max_length = 100) > parent = models.ForeignKey('Task', null = True) > > Using this model

Re: Converting relational data to hiechical data

2008-02-21 Thread Evert Rol
> I have a model like > > class Task(models.Model): > name = Models.CharField(max_length = 100) > parent = models.ForeignKey('Task', null = True) > > Using this model say I have got a table like, > > Task > --- > ID Name Parent_id > 1 Foo null > 2 Bar 1 > 3 Baz1 > 4

Converting relational data to hiechical data

2008-02-21 Thread shabda
I have a model like class Task(models.Model): name = Models.CharField(max_length = 100) parent = models.ForeignKey('Task', null = True) Using this model say I have got a table like, Task --- ID Name Parent_id 1 Foo null 2 Bar 1 3 Baz1 4 Bax2 I want to