def add_csrf(request, **kwargs):
 d = dict(user=request.user, **kwargs)
 d.update(csrf(request))
 return RequestContext(request, d)

def add_csrf ( request , ** kwargs ) : d = dict ( user = request . user , ** kwargs ) d . update ( csrf ( request ) ) return RequestContext ( request , d )
add csrf to dictionary and wrap in a requestcontext .