Commit d2b7e3d5 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'hotfix/filter_chairs_board_is_None' into 'master'

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

See merge request !396
parents 73b20299 d2c39b79
...@@ -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]
Supports Markdown
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