Skip to content

Commit

Permalink
Use URL reversing for admin button on homepage
Browse files Browse the repository at this point in the history
Fixes #23
  • Loading branch information
krishnans2006 authored May 16, 2024
1 parent 72d0153 commit 84d500a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tin/templates/courses/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h2>To Do</h2>

{% if request.user.is_superuser %}
<h2>Administration</h2>
<p><a class="tin-btn" href="/admin">Django Administrative Interface</a></p>
<p><a class="tin-btn" href="{% url 'admin:index' %}">Django Administrative Interface</a></p>

<form method="post" action="{% url 'submissions:set_aborted_complete' %}">
{% csrf_token %}
Expand Down

0 comments on commit 84d500a

Please sign in to comment.