mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
Prevent the "Reverse for 'defender_blocks_view' not found" error (#237)
This commit is contained in:
parent
a972dae7fc
commit
4bea010b65
1 changed files with 4 additions and 1 deletions
|
|
@ -17,9 +17,12 @@
|
|||
|
||||
{% block content %}
|
||||
{{ block.super }}
|
||||
{% url 'defender_blocks_view' as blocks_url %}
|
||||
{% if blocks_url %}
|
||||
<div class="app-defender module">
|
||||
<table><tr scope='row'><td colspan='3'>
|
||||
<h4><a href='{% url 'defender_blocks_view' %}'>Blocked Users</a></h4>
|
||||
<h4><a href='{{ blocks_url }}'>Blocked Users</a></h4>
|
||||
</td></tr></table>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock content%}
|
||||
|
|
|
|||
Loading…
Reference in a new issue