def _get_attribute_value(self, key):
"""
Get a plain attribute.
:param key: The attribute to get
:type key: str
"""
value = self._get_attribute_from_dict(key)
if self._has_cast(key):
value = self._cast_attribute(key, value)
elif key in self.get_dates():
if value is not None:
return self.as_datetime(value)
return value
评论列表
文章目录