diff --git a/apps/main/models.py b/apps/main/models.py index 6af4e4d8..1474acb0 100644 --- a/apps/main/models.py +++ b/apps/main/models.py @@ -172,8 +172,9 @@ class SiteSettings(ProjectBaseMixin): @property def published_sitefeatures(self): - return self.sitefeature_set\ - .filter(Q(published=True) and Q(feature__source__in=[PlatformMixin.WEB, PlatformMixin.ALL])) + return self.sitefeature_set. \ + filter(Q(published=True) & + Q(feature__source__in=[PlatformMixin.WEB, PlatformMixin.ALL])) @property def site_url(self):