From f37f393d72f3fb11047351c4431fa51233ac80f3 Mon Sep 17 00:00:00 2001 From: luto Date: Sat, 14 Oct 2017 11:57:03 +0200 Subject: [PATCH] [import] convert shackbureau leave_date into membership end --- byro_shackspace/management/commands/import_shackbureau.py | 3 +++ 1 file changed, 3 insertions(+) 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)