Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2610 closed defect (fixed)

Docs on auth context processor are incorrect

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

Description

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 by Adrian Holovaty, 18 years ago

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