fixed missing _

This commit is contained in:
Andreas Madsack 2018-01-13 13:12:54 +01:00
parent 49eee77d87
commit 8db0bb2db3

View File

@ -153,7 +153,7 @@ def import_member(member_data):
memberships = member_data.get('memberships') memberships = member_data.get('memberships')
last = None last = None
for membership in sorted(memberships, key=lambda m: m['membership_start']): for membership in sorted(memberships, key=lambda m: m['membership_start']):
obj = Membership.objects.update_or_create( obj, _ = Membership.objects.update_or_create(
member=member, member=member,
defaults={ defaults={
'start': parse_date(membership['membership_start']), 'start': parse_date(membership['membership_start']),