Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#9980 closed (invalid)

Nice-have correction for Authentication

Reported by: Sergiy Kuzmenko 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: no UI/UX: no

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 15 years ago.
"Nice correction", slightly modified, in patch format

Download all attachments as: .zip

Change History (7)

comment:1 by Matthias Kestenholz, 15 years ago

Component: UncategorizedDocumentation

comment:2 by Jacob, 15 years ago

milestone: 1.1
Triage Stage: UnreviewedAccepted

by Jeff Anderson, 15 years ago

"Nice correction", slightly modified, in patch format

comment:3 by Jeff Anderson, 15 years ago

Has patch: set
Triage Stage: AcceptedReady for checkin

comment:4 by Kevin Kubasik, 15 years ago

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

comment:5 by Gary Wilson, 15 years ago

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

milestone: 1.1

Milestone 1.1 deleted

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