[import] convert shackbureau leave_date into membership end

This commit is contained in:
luto 2017-10-14 11:57:03 +02:00
parent 5db2b81042
commit f37f393d72

View File

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