Fix subqueries
This commit is contained in:
parent
ed09ee78cc
commit
37fb67cbb3
|
|
@ -173,7 +173,8 @@ class SiteSettings(ProjectBaseMixin):
|
||||||
@property
|
@property
|
||||||
def published_sitefeatures(self):
|
def published_sitefeatures(self):
|
||||||
return self.sitefeature_set\
|
return self.sitefeature_set\
|
||||||
.filter(Q(published=True) and Q(feature__source__in=[PlatformMixin.WEB, PlatformMixin.ALL]))
|
.filter(published=True)\
|
||||||
|
.filter(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