Andy Mikhailenko avatar Andy Mikhailenko committed dfe87e9

BUGFIX: template tag get_breadcrumb_trail was broken. Thanks to Richard Frankel for the patch.

Comments (0)

Files changed (3)

 generally made django-navigation better:
 
 * Mikhail Korobov
+* Richard Frankel
 * Your Name Here ;)
 # tests coverage, b) sphinx and setup.py properly import the version from a
 # single place so that I don't have to edit it always here and there.
 
-version = '0.8.0'
+version = '0.8.1'

navigation/templatetags/navigation_tags.py

     warnings.warn('Template filter "get_title" is deprecated. Use "breadcrumb"'
                   ' tag instead. See django-navigation documentation for'
                   ' details.', DeprecationWarning)
-    return find_crumb(request)
+    return find_crumb(context['request'])
 
 @register.filter
 def get_sections(request):
     """ Returns the trail of :term:`breadcrumbs`. Each breadcrumb is
     represented by a :class:`navigation.helpers.Crumb` instance.
     """
-    return _get_trail(request, exclude_section=False)
+    return _get_trail(context['request'], exclude_section=False)
 
 @register.filter
 def get_navigation(request):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.