Hi all! I am really new to both python and Django, but so far I really like it. My first project is a blog that I am creating while going through the beginner tutorial for a poll. I am simply reading the information for the poll and then using it for my blog, but I have a bit of a problem.
Category section from my models.py : class Category(models.Model): name = models.CharField(max_length=20) parent = models.ForeignKey('self', blank=True, null=True, related_name='child_set') def __unicode__(self): return self.name The problem I am having is how do I show this in a nice list with the child object following their parent. Like: <ul> <li>Parent <ul> <li>Child</li> </ul> </li> <li>Single</li> </ul> Well something like that, maybe someone can help me ... :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---