Login redirects to current page
This commit is contained in:
parent
c141589b74
commit
8d335282e4
1 changed files with 2 additions and 2 deletions
|
@ -29,9 +29,9 @@
|
||||||
·
|
·
|
||||||
<a href="{% url 'admin:index' %}">Admin</a>
|
<a href="{% url 'admin:index' %}">Admin</a>
|
||||||
·
|
·
|
||||||
<a href="{% url 'admin:logout' %}?next=/">Log out</a>
|
<a href="{% url 'admin:logout' %}?next={{ request.get_full_path }}">Log out</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url 'admin:login' %}?next=/">Log in</a>
|
<a href="{% url 'admin:login' %}?next={{ request.get_full_path }}">Log in</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
Reference in a new issue