#36575: Document logout link workaround with a better URL name
-------------------------------+--------------------------------------
     Reporter:  adehnert       |                    Owner:  (none)
         Type:  Uncategorized  |                   Status:  new
    Component:  Documentation  |                  Version:  5.1
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Comment (by adehnert):

 I also argue in #36576 that `admin:logout` *should* work for logging out
 non-admin users, but I contend that using `admin:logout` *here* is wrong
 independent of that. If nothing else, it appears that
 
[https://docs.djangoproject.com/en/5.2/topics/auth/default/#django.contrib.auth.logout
 `auth.logout`] and
 
[https://docs.djangoproject.com/en/5.2/ref/contrib/admin/#django.contrib.admin.AdminSite.logout_template
 the admin variant] can use different templates, and presumably most people
 following these directions to add a logout link are doing it outside the
 admin context -- the admin has a logout link provided. That said, it's
 obviously much worse because of #36576 (I only noticed the discrepancy
 when I finally went to log out a user without admin access, and that
 wouldn't have been relevant without #36576).
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36575#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070198e9285c7a-67955c67-3c69-4542-8180-208d59ebbbf7-000000%40eu-central-1.amazonses.com.

Reply via email to