Re: Recursion without breaking MVC!

2009-09-29 Thread Matthias Kestenholz
Hey, On Tue, Sep 29, 2009 at 12:50 AM, Nuno Machado wrote: > > Hi djangoers, > > I've a simple category Model: > > class Category(models.Model): >    name = models.CharField(max_length=63) >    children = models.ManyToManyField('self', symmetrical=False, > related_name='parent') > > I need to cr

Recursion without breaking MVC!

2009-09-28 Thread Nuno Machado
Hi djangoers, I've a simple category Model: class Category(models.Model): name = models.CharField(max_length=63) children = models.ManyToManyField('self', symmetrical=False, related_name='parent') I need to create a webpage to display all the categories with proper indentation, somethin