Commit 05be3346 authored by Luko van der Maas's avatar Luko van der Maas

Merge branch 'fix-fixture-membership-date' into 'master'

Don't generate invalid membership dates

See merge request !1343
parents 18add63f 8355a96c
......@@ -372,7 +372,7 @@ class Command(BaseCommand):
membership.since = _faker.date_time_between(
start_date='-4y', end_date='now', tzinfo=None)
membership.until = random.choice([_faker.date_time_between(
start_date='-2y', end_date='+2y', tzinfo=None), None])
start_date=membership.since, end_date='+2y', tzinfo=None), None])
membership.type = random.choice(
[t[0] for t in Membership.MEMBERSHIP_TYPES])
......
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