diff --git a/byro_shackspace/management/commands/import_shackbureau.py b/byro_shackspace/management/commands/import_shackbureau.py index d036291..202867f 100644 --- a/byro_shackspace/management/commands/import_shackbureau.py +++ b/byro_shackspace/management/commands/import_shackbureau.py @@ -147,6 +147,9 @@ def import_member(member_data): last.save(update_fields=['end']) last = obj + if member_data['leave_date']: + last.end = parse_date(membership['leave_date']) + if member_data['payment_type'].lower() == 'sepa': _import_sepa(member_data, member)