Skip to content

Commit

Permalink
Prevent the "Reverse for 'defender_blocks_view' not found" error (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
ataylor32 authored Feb 14, 2024
1 parent a972dae commit 4bea010
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion defender/templates/admin/defender/app_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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%}

0 comments on commit 4bea010

Please sign in to comment.