Re: nested list in templates

2009-09-15 Thread Leon Harris
>From a glance at your code looks it looks like the cat reference is not being updated to the sub category and is just endlessly looping over the top level category something more along these lines may help (where 'do_menu' is an inclusion tag) http://docs.djangoproject.com/en/dev/howto/custom-te

nested list in templates

2009-09-14 Thread xyz69
Hello, I have "Category" app. I use django-mptt to remember the structure od the category tree. I want to show this tree in nested list using generic view (render_to_template). I pass a category_list in extra_context and the problem starts when want to show it. I try something like this: # categ