alesdotio / django-admin-shortcuts

Add simple and pretty shortcuts to the django admin homepage.
Other
205 stars 53 forks source link

Index only #11

Closed joegillon closed 11 years ago

joegillon commented 11 years ago

This appears to be written to appear on the index page only. I made a feeble attempt to use it in all admin pages by changing

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
{% if title %} &rsaquo; {{ title }}{% endif %}
</div>
{% endblock %}

in the admin base.html to

{% block breadcrumbs %}
<div class="admin_shortcuts">
    {% admin_shortcuts %}
</div>
{% endblock %}

but I get

Invalid block tag: 'admin_shortcuts', expected 'endblock'

Any chance this is an easy fix?

alesdotio commented 11 years ago

add {% load admin_shortcuts_tags %} to the top

joegillon commented 11 years ago

Thanks, that does fix the error but I still get the usual breadcrumbs even though I removed the code for them. Does admin shortcuts do the usual breadcrumbs under some circumstances?

On 5/20/2013 11:13 AM, Aleš Kocjančič wrote:

|{% load admin_shortcuts_tags %}|

alesdotio commented 11 years ago

no, admin_shortcuts does not render the breadcrumbs. you are probably not overriding the correct template block

joegillon commented 11 years ago

OK, I'll poke around.

On 5/20/2013 11:23 AM, Aleš Kocjančič wrote:

no, admin_shortcuts does not render the breadcrumbs. you are probably not overriding the correct template block

— Reply to this email directly or view it on GitHub https://github.com/alesdotio/django-admin-shortcuts/issues/11#issuecomment-18153357.