Prevent the "Reverse for 'defender_blocks_view' not found" error (#237)

This commit is contained in:
Adam 2024-02-14 16:06:30 -07:00 committed by GitHub
parent a972dae7fc
commit 4bea010b65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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%}