def get_form_kwargs(self):
        kwargs = {"user": self.request.user, "initial": self.get_initial()}
        if self.request.method in ["POST", "PUT"]:
            kwargs.update({
                "data": self.request.POST,
                "files": self.request.FILES,
            })
        return kwargs
Returns the keyword arguments for instantiating the form.
dataset/ETHPy150Open pinax/django-user-accounts/account/views.py/ChangePasswordView.get_form_kwargs