Skip to content

Commit 77f862c

Browse files
authored
fix: small bug in Django logout code (#33385)
1 parent 712de30 commit 77f862c

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/learn/server-side/django/authentication

1 file changed

+1
-1
lines changed

files/en-us/learn/server-side/django/authentication/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ Open the base template (**/django-locallibrary-tutorial/catalog/templates/base_g
429429
{% if user.is_authenticated %}
430430
<li>User: \{{ user.get_username }}</li>
431431
<li>
432-
<form id="logout-form" method="post" action="{% url 'admin:logout' %}">
432+
<form id="logout-form" method="post" action="{% url 'logout' %}">
433433
{% csrf_token %}
434434
<button type="submit" class="btn btn-link">Logout</button>
435435
</form>

0 commit comments

Comments
 (0)