Hey there,
i've got a problem with the form validation.
I have a form where I need the currently logged in user, to check some
stuff. So I did this in the form:

    def __init__(self, user, *args, **kwargs):
        self.user = user
        super(UpdateUserForm, self).__init__(*args, **kwargs)

And I pass the user in in the view

    user = User.objects.get(pk=request.user.id)
    from = UpdateUserForm(user, ...initialstuff...)

Somehow now all the validation methods aren't executed anymore
(clean_<myVar>), not any of them. Without my own constructor it works.
Does anyone know why?

Thanks for your help

derape

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to