Login redirects to current page

This commit is contained in:
Gabriel Augendre 2020-12-28 08:07:43 +01:00
parent c141589b74
commit 8d335282e4
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -29,9 +29,9 @@
·
<a href="{% url 'admin:index' %}">Admin</a>
&centerdot;
<a href="{% url 'admin:logout' %}?next=/">Log out</a>
<a href="{% url 'admin:logout' %}?next={{ request.get_full_path }}">Log out</a>
{% else %}
<a href="{% url 'admin:login' %}?next=/">Log in</a>
<a href="{% url 'admin:login' %}?next={{ request.get_full_path }}">Log in</a>
{% endif %}
</nav>
</header>