Hi
I am using both FormMixin, and ListView.
When validating the form I need the users id. How can I get that into the form for cleaning? I am presuming somehow using get_form and then using the form's init to grab it, but am unsure of the syntax.
Any ideas?
Many thanks
def post(self, request, *args, **kwargs):
form = self.get_form()
if form.is_valid():
return self.form_valid(form)
return self.get(request, *args, **kwargs)