

def form_valid(self, form):
    self.object = form.save(commit=False)
    self.object.creator = self.request.user
    self.object.save()
    return HttpResponseRedirect(self.get_success_url())

dataset/ETHPy150Open pinax/pinax-teams/pinax/teams/views.py TeamCreateView.form_valid/original