misc: use auth_logout as logout view name, for compatibility (#53425)

This commit is contained in:
Frédéric Péters 2021-04-26 14:28:30 +02:00
parent 60b77ad5da
commit f9015d2a90
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ def login(request, *args, **kwargs):
@never_cache
def logout(request, *args, **kwargs):
try:
return redirect(reverse('logout'))
return redirect(reverse('auth_logout'))
except NoReverseMatch:
return admin.site.orig_logout(request, *args, **kwargs)

View File

@ -9,7 +9,7 @@
<script src="{% static "js/passerelle.js" %}"></script>
{% endblock %}
{% block logout-url %}{% url 'logout' %}{% endblock %}
{% block logout-url %}{% url 'auth_logout' %}{% endblock %}
{% block breadcrumb %}
{% if portal_agent_url %}{{ block.super }}{% endif %}

View File

@ -55,7 +55,7 @@ urlpatterns = register_apps_urls(urlpatterns)
# add authentication patterns
urlpatterns += [
url(r'^logout/$', logout, name='logout'),
url(r'^logout/$', logout, name='auth_logout'),
url(r'^login/$', login, name='auth_login'),
]