如果使用CreateView,可以:
def form_valid(self, form): form.instance.xxx = xxx return super(Clazz, self).form_valid(form)