prymitive / bootstrap-breadcrumbs

Django template tags for easy breadcrumbs using twitter bootstrap css classes or custom template
django-bootstrap-breadcrumbs.readthedocs.org
MIT License
92 stars 47 forks source link

named route and kwargs not respected #21

Closed jamhall closed 9 years ago

jamhall commented 9 years ago

Hello,

In template I should have this:

   {% load django_bootstrap_breadcrumbs %}
   {% block breadcrumbs %}
        {% clear_breadcrumbs %}
        {% breadcrumb 'My Collections' 'app_collections_index' %}
        {% breadcrumb collection "app_collections_view" id=collection.uiid %}
        {% breadcrumb "Edit" "app_collections_edit" id=collection.uiid %}
    {% endblock %}

The breadcrumb link for 'app_collections_view` outputs:

http://localhost:8000/collections/32c9fdd9-de41-4bb0-9ea6-7a30371df43e/app_collections_view

It should generate the proper url of:

http://localhost:8000/collections/32c9fdd9-de41-4bb0-9ea6-7a30371df43e

For some reason it is completely ignore the route name and kwargs...

Thanks in advance!

jamhall commented 9 years ago

Please ignore. I made a mistake I should have passed collection.uuid and not collection.uiid.

It would be nice if it throws an exception if it hasn't matched the route.

Cheers,