diff --git a/apps/news/models.py b/apps/news/models.py index c7785f45..79e2bbd0 100644 --- a/apps/news/models.py +++ b/apps/news/models.py @@ -283,7 +283,7 @@ class News(GalleryMixin, BaseAttributes, TranslatedFieldsMixin, HasTagsMixin, @property def has_any_desc_active(self): """Detects whether news item has any active description""" - return any(list(map(lambda v: v.lower() == 'true', self.locale_to_description_is_active.values()))) + return any(list(map(lambda v: v.lower() == 'true' if isinstance(v, str) else v, self.locale_to_description_is_active.values()))) @property def is_publish(self):