﻿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
25831	django.views.generic.edit.FormMixinBase : get_form_with_form_class wrapping preventing custom method profiles for get_form()	LeGast00n	nobody	"Hi there,

Django 1.8's FormMixinBase causes an issue for Views that implement a custom method profile for get_form() : the wrapping function tolerates no other argument than form_class.

Current implementation:
{{{
                def get_form_with_form_class(self, form_class=None):
                    if form_class is None:
                        form_class = self.get_form_class()
                    return get_form(self, form_class=form_class)
}}}
Better implementation:
{{{
                def get_form_with_form_class(self, form_class=None, *args, **kwargs):
                    if form_class is None:
                        form_class = self.get_form_class(*args, **kwargs)
                    return get_form(self, form_class=form_class, *args, **kwargs)
}}}
cheers"	Bug	closed	Generic views	1.8	Normal	wontfix	forms views	Simon Charette	Unreviewed	0	0	0	0	1	0
