Update models.py
This commit is contained in:
parent
37fb67cbb3
commit
2c9d579a54
|
|
@ -172,9 +172,9 @@ class SiteSettings(ProjectBaseMixin):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def published_sitefeatures(self):
|
def published_sitefeatures(self):
|
||||||
return self.sitefeature_set\
|
return self.sitefeature_set. \
|
||||||
.filter(published=True)\
|
filter(Q(published=True) &
|
||||||
.filter(feature__source__in=[PlatformMixin.WEB, PlatformMixin.ALL])
|
Q(feature__source__in=[PlatformMixin.WEB, PlatformMixin.ALL]))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def site_url(self):
|
def site_url(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user