Commits

Andy Mikhailenko  committed 84f9bef

BUGFIX: Crumb.is_current was not set.

  • Participants
  • Parent commits 3478906

Comments (0)

Files changed (2)

File 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.1'
+__version__ = '0.6.2'

File navigation/resolvers.py

     for resolver in RESOLVERS:
         crumb = resolver(request, url)
         if crumb is not None:
+            crumb.is_current = bool(url == request.path)
             return crumb
 
     # TODO return None instead of a fake breadcrumb object
     # (this will be a backwards-incompatible change)
     # OTOH, maybe we still need this to store the partial URL?
-    return Crumb(url, '???', is_dummy=True)
+    return Crumb(url, u'???', is_dummy=True)
 
 def _resolve_url(url, request=None):
     urlconf  = getattr(request, "urlconf", settings.ROOT_URLCONF)