0001-public-fix-display-of-hierarchival-menus-7197.patch
combo/public/templatetags/combo.py | ||
---|---|---|
19 | 19 |
import datetime |
20 | 20 | |
21 | 21 |
from django import template |
22 |
from django.template import RequestContext |
|
23 | ||
22 | 24 |
from combo.public.menu import get_menu_context |
23 | 25 |
from combo.utils import NothingInCacheException |
24 | 26 | |
... | ... | |
51 | 53 |
def show_menu(context, level=0, current_page=None, depth=1, reduce_depth=False): |
52 | 54 |
if reduce_depth: |
53 | 55 |
depth -= 1 |
54 |
return get_menu_context(context, level=level, current_page=current_page, |
|
56 |
new_context = RequestContext(context['request'], { |
|
57 |
'page': context['page'], |
|
58 |
'request': context['request']}) |
|
59 |
return get_menu_context(new_context, level=level, current_page=current_page, |
|
55 | 60 |
depth=depth) |
56 | 61 | |
57 | 62 |
@register.simple_tag(takes_context=True) |
58 |
- |