Django

Code

Ticket #2744 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

context processors cant return None cause it not checked in RequestContext

Reported by: anonymous Assigned to: adrian
Milestone: Component: Template system
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

this just came up in irc when someone did return None instead of a dict

Attachments

context-processor-returns-none.patch (470 bytes) - added by anonymous on 09/16/06 02:38:52.
my patch to fix it

Change History

09/16/06 02:38:52 changed by anonymous

  • attachment context-processor-returns-none.patch added.

my patch to fix it

09/16/06 15:01:12 changed by ubernostrum

Hmm.

I'm not sure if we should do this, or if we should make it extra-clear in the documentation that context processors must return a dictionary -- even if it's an empty dictionary.

09/26/06 10:38:44 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [3865]) Fixed #2744 -- Added 'Writing your own context processors' to docs/templates_python.txt


Add/Change #2744 (context processors cant return None cause it not checked in RequestContext)




Change Properties
Action