fields.py 文件源码

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

项目:flask-zhenai-mongo-echarts 作者: Fretice 项目源码 文件源码
def validate(self, value):
        if not isinstance(value, (six.binary_type, six.text_type, Binary)):
            self.error('BinaryField only accepts instances of '
                       '(%s, %s, Binary)' % (
                           six.binary_type.__name__, six.text_type.__name__))

        if self.max_bytes is not None and len(value) > self.max_bytes:
            self.error('Binary value is too long')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号