Re: Tree from the model.

2008-04-11 Thread shabda
Though I do not always use a reusable app, even if it exists, (leaky abstractions[1]), django-mptt is awesome. It does what it claims to do, and stays out of the way. Very recommended if you need to model hierarchical data. On Apr 11, 11:43 am, "James Bennett" <[EMAIL PROTECTED]> wrote: >

Re: Tree from the model.

2008-04-11 Thread James Bennett
2008/4/11 Dmitriy Sodrianov <[EMAIL PROTECTED]>: > Is it possible to use only Django's built-in functions? Yes, but you will end up essentially re-implementing all the code in the application Alex suggested. When an application exists that helps you to do what you want, it's quite silly to go

Re: Tree from the model.

2008-04-11 Thread Dmitriy Sodrianov
Is it possible to use only Django's built-in functions? On 11 апр, 04:21, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Try to use this very good applicationhttp://code.google.com/p/django-mptt/. > > On Apr 10, 11:15 pm, Dmitriy Sodrianov <[EMAIL PROTECTED]> wrote: > > > Hi to all. > > > I have a

Re: Tree from the model.

2008-04-10 Thread Alex Koshelev
Try to use this very good application http://code.google.com/p/django-mptt/. On Apr 10, 11:15 pm, Dmitriy Sodrianov <[EMAIL PROTECTED]> wrote: > Hi to all. > > I have a model that can be described briefly as follows: > > class Task(models.Model): > title = models.CharField(max_length = 250)

Re: Tree from the model.

2008-04-10 Thread mustapha aymen
http://membres.lycos.fr/ccpfordz --~--~-~--~~~---~--~~ 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

Tree from the model.

2008-04-10 Thread Dmitriy Sodrianov
Hi to all. I have a model that can be described briefly as follows: class Task(models.Model): title = models.CharField(max_length = 250) subtasks = models.ManyToManyField('Task', null=True, blank=True) How can I build a tree of task and subtask with level greater than two?