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)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/05cfa683-f53b-4c4a-ae67-17a2166164d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to