Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2610 closed defect (fixed)

Docs on auth context processor are incorrect

Reported by: ubernostrum 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:

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 Changed 9 years ago by adrian

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

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

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