Verified Commit 8563a8d2 authored by ynerant's avatar ynerant
Browse files

Fix membership tables for clubs without an ending membership date


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent d3273e9e
Pipeline #9707 passed with stages
in 16 minutes and 1 second
......@@ -120,7 +120,7 @@ class MembershipTable(tables.Table):
club=record.club,
user=record.user,
date_start__gte=record.club.membership_start,
date_end__lte=record.club.membership_end,
date_end__lte=record.club.membership_end or date(9999, 12, 31),
).exists(): # If the renew is not yet performed
empty_membership = Membership(
club=record.club,
......
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