Opened 6 years ago

Closed 6 years ago

Last modified 3 years ago

#9980 closed (invalid)

Nice-have correction for Authentication

Reported by: shelldweller Owned by: kkubasik
Component: Documentation Version: 1.0
Severity: Keywords: templates authentication kkmegapatch
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In http://docs.djangoproject.com/en/dev/topics/auth/#id5 the wording is a bit misleading. It would be nice to replace this:

The currently logged-in user, either a User instance or an AnonymousUser instance, is stored in the template variable {{ user }}

with this:

If rendering template django.template.RequestContext (link), the currently logged-in user, either a User instance or an AnonymousUser instance, is stored in the template variable {{ user }}

to make clear that this feature is only available with RequestContext (and not with Context)

Attachments (1)

requestcontext_auth_user.diff (1.0 KB) - added by programmerq 6 years ago.
"Nice correction", slightly modified, in patch format

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by mk

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by jacob

  • milestone set to 1.1
  • Triage Stage changed from Unreviewed to Accepted

Changed 6 years ago by programmerq

"Nice correction", slightly modified, in patch format

comment:3 Changed 6 years ago by programmerq

  • Has patch set
  • Triage Stage changed from Accepted to Ready for checkin

comment:4 Changed 6 years ago by kkubasik

  • Keywords kkmegapatch added
  • Owner changed from nobody to kkubasik

comment:5 Changed 6 years ago by gwilson

  • Resolution set to invalid
  • Status changed from new to closed

In the paragraph directly above, it is already mentioned that you must be using RequestContext and that you need the correct context processor installed.

comment:6 Changed 3 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top