forms.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:flask_restapi 作者: dracarysX 项目源码 文件源码
def __init__(self, formdata=None, obj=None, data=None, *args, **kwargs):
        super(PeeweeForm, self).__init__(formdata=formdata, obj=obj, data=data, *args, **kwargs)
        if obj is not None and not isinstance(obj, Model):
            raise PeeweeFormException(u'obj must None or peewee model instance.')
        self.obj = obj
        self._validate = False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号