#26558: "different account" notice in login form depend on request context
processor
-----------------------------------------+------------------------
Reporter: claudep | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
When the notice "You are authenticated as {{ username }}, but ..." (added
as of #25163) is displayed on the admin login page, the username variable
presence depends on the `request` context processor being present in the
`OPTIONS['context_processors']` key of the TEMPLATES setting. If not, you
get:
`You are authenticated as , but are not authorized to access this page.
Would you like to login to a different account?`
Maybe it's possible to feed the context with the username variable in the
view instead?
--
Ticket URL: <https://code.djangoproject.com/ticket/26558>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.11578b151471777b40eaed06b62ce9bd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.