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,7 +169,9 @@ class Command(BaseCommand):
membership.type = 'member'
if member['membership_type'] == 'Honorary Member':
membership.type = 'honorary'
if membership.type is not None and membership.type != '':
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