storage.py 文件源码

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

项目:django-cockatiel 作者: raphaelm 项目源码 文件源码
def get_available_name(self, name, max_length=None):
        if max_length and len(name) + 41 > max_length:
            raise SuspiciousFileOperation(
                'Storage can not find an available filename for "%s". '
                'Please make sure that the corresponding file field '
                'allows sufficient "max_length".' % name
            )
        return name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号