Commit 274b0ba5 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'fix/membership-migration' into 'master'

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

See merge request !204
parents 80475368 e089c61a
...@@ -169,6 +169,8 @@ class Command(BaseCommand): ...@@ -169,6 +169,8 @@ class Command(BaseCommand):
membership.type = 'member' membership.type = 'member'
if member['membership_type'] == 'Honorary Member': if member['membership_type'] == 'Honorary Member':
membership.type = 'honorary' membership.type = 'honorary'
if membership.type is not None and membership.type != '':
for membership in member['memberships']: for membership in member['memberships']:
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