Python django.views.generic.edit 模块,ProcessFormView() 实例源码

我们从Python开源项目中,提取了以下2个代码示例,用于说明如何使用django.views.generic.edit.ProcessFormView()

项目:foundation    作者:altio    | 项目源码 | 文件源码
def handle_common(self, handler, request, *args, **kwargs):
        handler = super(ProcessFormView, self).handle_common(
            handler, request, *args, **kwargs)
        self.object = None if self.add else self.get_object()
        self.form = self.get_form()
        return handler
项目:foundation    作者:altio    | 项目源码 | 文件源码
def get(self, request, *args, **kwargs):
        self.inline_formsets = self.get_inline_formsets(
            self.object, change=not self.add
        )
        return super(ProcessFormView, self).get(request, *args, **kwargs)