callowayproject/django-hiermenu — pull request #2 by Fandekasp (2013-05-29 05:37:13+00:00)
Title: add new template filter "has_children"

example:

{% for item in items %}

{{ item.text }}
{% if item|has_children:request.user %}

{% render_menu item top top_ %}

{% endif %}

{% endfor %}

Without this filter and if using `{% if item.menu_set.all %}`, we get empty **

** in the html code for users who do not have permission to see submenus.

Also, fixed a bug in a get_template.