Opened 17 years ago
Last modified 17 years ago
#4626 closed
pass the context to extra_context functions — at Version 1
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Generic views | Version: | dev |
Severity: | Keywords: | ||
Cc: | sciyoshi@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I found it helpful for extra_context functions to have access to the context.
The change is in line 80:
< if callable(value): < c[key] = value() > if callable(value): > c[key] = value(c)
I'm not sure who decides on whether it should go to the version - it does changes the API
Note:
See TracTickets
for help on using tickets.
(Fixed description formatting.)
What file are you trying to change here? What is an example use-case?