Commits

Andy Mikhailenko committed 3478906

BUGFIX: tempalte tag "breadcrumb" would break if no arguments were supplied. (I really need to write some tests.)

Comments (0)

Files changed (2)

navigation/__init__.py

 __author__  = 'Andy Mikhailenko'
 __license__ = 'GNU Lesser General Public License (GPL), Version 3'
 __url__     = 'http://bitbucket.org/neithere/django-navigation/'
-__version__ = '0.6.0'
+__version__ = '0.6.1'

navigation/templatetags/navigation_tags.py

     # {% tag_name arg1 arg2 arg3 as variable %}
     # {% tag_name arg1 arg2 arg3 %}
     tag_name = items[0]
-    if "as" == items[-2]:
+    if 1 < len(items) and "as" == items[-2]:
         var_name = items[-1]
         args = items[1:-2]
     else: