Update models.py
This commit is contained in:
parent
37fb67cbb3
commit
2c9d579a54
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user