﻿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
17795	kwargs not passed on by django.views.generic.edit import ProcessFormView	ed.crewe@…	nobody	"Although these do get attached to self.kwargs for use within the class, this causes problems for decorators of the get_context_data method.

kwargs which you may expect to be available for use by decorators you create are unset by this mixin.

NB: In my case this was related to testing user object permissions - hence the need to have the context data

Patching as below fixes it:

{{{
    A mixin that processes a form on POST.                                                                                                                                                
    """"""
    def get(self, request, *args, **kwargs):
        form_class = self.get_form_class()
        form = self.get_form(form_class)
--      return self.render_to_response(self.get_context_data(form=form))
++      kwargs['form'] = form
++      return self.render_to_response(self.get_context_data(**kwargs))

 }}}"	Cleanup/optimization	new	Generic views	1.4-beta-1	Normal				Unreviewed	0	0	0	0	1	0
