Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/philomat/django-cms-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Lauber committed Mar 25, 2010
2 parents 1d3a4b9 + f23f5e2 commit c37f56c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion menus/templates/menu/menu.html
Expand Up @@ -2,7 +2,7 @@
{% for child in children %}
<li class="{% if child.selected %}selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}">
<a href="{{ child.get_absolute_url }}">{{ child.get_menu_title }}</a>
{% if child.childrens %}
{% if child.children %}
<ul>
{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
</ul>
Expand Down
3 changes: 2 additions & 1 deletion menus/templatetags/menu_tags.py
Expand Up @@ -35,7 +35,8 @@ def cut_levels(nodes, from_level, to_level, extra_inactive, extra_active):
if not node.visible:
removed.append(node)
if node.parent:
node.parent.children.remove(node)
if node in node.parent.children:
node.parent.children.remove(node)
if selected:
cut_after(selected, extra_active, removed)
if removed:
Expand Down

0 comments on commit c37f56c

Please sign in to comment.