Opened 8 years ago

Closed 7 years ago

Last modified 5 years ago

#9980 closed (invalid)

Nice-have correction for Authentication

Reported by: shelldweller Owned by: Kevin Kubasik
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 Jeff Anderson 8 years ago.
"Nice correction", slightly modified, in patch format

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by Matthias Kestenholz

Component: UncategorizedDocumentation
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 8 years ago by Jacob

milestone: 1.1
Triage Stage: UnreviewedAccepted

Changed 8 years ago by Jeff Anderson

"Nice correction", slightly modified, in patch format

comment:3 Changed 8 years ago by Jeff Anderson

Has patch: set
Triage Stage: AcceptedReady for checkin

comment:4 Changed 7 years ago by Kevin Kubasik

Keywords: kkmegapatch added
Owner: changed from nobody to Kevin Kubasik

comment:5 Changed 7 years ago by Gary Wilson

Resolution: invalid
Status: newclosed

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 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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