﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3071	[patch] Context should have the __contains__ method	Antti Kaihola	Adrian Holovaty	"The {{{Context}}} class in django.template.context should have a {{{__contains__}}} method defined, so that one can do:

{{{
if 'missiles' not in context:
    raise ImproperlyConfigured, \
        'Please include missiles in the context so we can destroy the world.'
    destroy_world_with(context['missiles'])
}}}

Although, the destroy_world_with function is left as an exercise for the reader.

A simple patch which concerns context.py is included."	defect	closed	Template system		normal	fixed			Ready for checkin	1	0	0	0	0	0
