Update models.py

This commit is contained in:
e.stoyushko 2019-10-31 11:42:57 +00:00
parent 37fb67cbb3
commit 2c9d579a54

View File

@ -172,9 +172,9 @@ class SiteSettings(ProjectBaseMixin):
@property
def published_sitefeatures(self):
return self.sitefeature_set\
.filter(published=True)\
.filter(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):