Commit 707cc30b authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Merge branch 'cherry-pick-d2c39b79' into 'release/1.4'

[Hotfix] [1.4] Comparing to False does not work on postgres

See merge request !397
parents 8f0c03b6 0428172b
...@@ -41,7 +41,7 @@ def index(request): ...@@ -41,7 +41,7 @@ def index(request):
elif 'custom' in request.GET: elif 'custom' in request.GET:
if request.GET['custom'] == 'commissievoorzitters': if request.GET['custom'] == 'commissievoorzitters':
memberships = (CommitteeMembership.active_memberships memberships = (CommitteeMembership.active_memberships
.filter(committee__board=False) .filter(committee__board=None)
.filter(chair=True) .filter(chair=True)
.prefetch_related('member__user')) .prefetch_related('member__user'))
members = [x.member for x in memberships] members = [x.member for x in memberships]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment