Merge branch 'fix-subquery' into 'develop'
Fix subqueries See merge request gm/gm-backend!81
This commit is contained in:
commit
4460559541
|
|
@ -172,8 +172,9 @@ 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(Q(published=True) &
|
||||||
|
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