def form_valid(self, form):
        form.save(user_id=self.request.user.pk)
        return HttpResponseRedirect(form.cleaned_data['next'])
Save the form.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/views.py/TermsAndConductAcceptView.form_valid