Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2610 closed defect (fixed)

Docs on auth context processor are incorrect

Reported by: James Bennett Owned by: Jacob
Component: Documentation Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The docs for django.core.context_processors.auth state that the messages variable returned to the context will be "A list of auth.Message objects for the currently logged-in user." That's not correct, though; the context processor is doing get_and_delete_messages on request.user, which iterates over the Message objects and returns the message attribute of each, not the objects themselves.

Change History (1)

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [3685]) Fixed #2610 -- Clarified docs on 'messages' variable for auth context processor

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