def _check_storage_location(cls, **kwargs):
if not cls.STORAGE_LOCATION:
return [
checks.Error(
'STORAGE_LOCATION is required',
obj=cls
)
]
elif not isinstance(cls.STORAGE_LOCATION, str):
return [
checks.Error(
'STORAGE_LOCATION must be an instance of str',
obj=cls
)
]
else:
return []
评论列表
文章目录