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, something like: Hobbies Music Piano Flute Cinema In order not to break the MVC/MTV pattern I want to create a list/ dictionary with the category tree so I can iterate through it in the Template. Can you point me in the right direction on how to do it? Many thanks. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---