📜  cbv uk django - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:30.822000             🧑  作者: Mango

代码示例1
def form_valid(self, form):
    """If the form is valid, save the associated model."""
    self.object = form.save()
    return super().form_valid(form)