I have a form class contained in a FormCollection.
My form has an __init__ method which expects additional parameters, such as the request object. How can I pass the request object to the form, provided that the form is created by the FormCollection code behind the scenes? In vanilla Django, I would use the get_form_kwargs method of my FormView class view.
I have a form class contained in a
FormCollection
.My form has an
__init__
method which expects additional parameters, such as the request object. How can I pass the request object to the form, provided that the form is created by theFormCollection
code behind the scenes? In vanilla Django, I would use theget_form_kwargs
method of myFormView
class view.Thank you!