def _check_options(self, **kwargs):
if not self.editor_options:
return [
checks.Error(
'options required',
obj=self
)
]
elif not isinstance(self.editor_options, dict):
return [
checks.Error(
'options must be a dict',
obj=self
)
]
else:
return []
评论列表
文章目录