Commit e089c61a authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg

Fix migrating non-members, do not give them a membership object

parent 551fb87c
......@@ -169,7 +169,9 @@ class Command(BaseCommand):
membership.type = 'member'
if member['membership_type'] == 'Honorary Member':
membership.type = 'honorary'
membership.save()
if membership.type is not None and membership.type != '':
membership.save()
for membership in member['memberships']:
mdata = membership['membership']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment