[import] convert shackbureau leave_date into membership end

This commit is contained in:
luto 2017-10-14 12:21:25 +02:00
parent a4b91a2ad8
commit bd1ab2034d

View File

@ -149,6 +149,7 @@ def import_member(member_data):
if member_data['leave_date']: if member_data['leave_date']:
last.end = parse_date(member_data['leave_date']) last.end = parse_date(member_data['leave_date'])
last.save(update_fields=['end'])
if member_data['payment_type'].lower() == 'sepa': if member_data['payment_type'].lower() == 'sepa':
_import_sepa(member_data, member) _import_sepa(member_data, member)