From a4b91a2ad8eac49526d87ed671c74277be9e6f64 Mon Sep 17 00:00:00 2001 From: luto Date: Sat, 14 Oct 2017 12:20:57 +0200 Subject: [PATCH] [import] convert shackbureau leave_date into membership end --- byro_shackspace/management/commands/import_shackbureau.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byro_shackspace/management/commands/import_shackbureau.py b/byro_shackspace/management/commands/import_shackbureau.py index e40448e..4658508 100644 --- a/byro_shackspace/management/commands/import_shackbureau.py +++ b/byro_shackspace/management/commands/import_shackbureau.py @@ -148,7 +148,7 @@ def import_member(member_data): last = obj if member_data['leave_date']: - last.end = parse_date(membership['leave_date']) + last.end = parse_date(member_data['leave_date']) if member_data['payment_type'].lower() == 'sepa': _import_sepa(member_data, member)