def form_valid(self, form):
        form.user_id = self.request.user.pk
        form.save()
        return HttpResponseRedirect(self.get_success_url())
Adds this field to the field's table and optionally group by it
dataset/ETHPy150Open ofa/connect/open_connect/accounts/views.py/InviteEntryView.form_valid--crossover with--dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/fields.py/DatePartField.add_to_table