From 8db0bb2db3f94853012b60e73006528b7d3efffa Mon Sep 17 00:00:00 2001 From: Andreas Madsack Date: Sat, 13 Jan 2018 13:12:54 +0100 Subject: [PATCH] fixed missing _ --- 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 a39bb6f..f564574 100644 --- a/byro_shackspace/management/commands/import_shackbureau.py +++ b/byro_shackspace/management/commands/import_shackbureau.py @@ -153,7 +153,7 @@ def import_member(member_data): memberships = member_data.get('memberships') last = None 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, defaults={ 'start': parse_date(membership['membership_start']),