Permissions: change from list to key/value pairs in manifest #168
@ -493,6 +493,8 @@ class VersionManager(models.Manager):
|
|||||||
# Stash the ManyToMany to be created after the Version has a valid ID already
|
# Stash the ManyToMany to be created after the Version has a valid ID already
|
||||||
licenses = kwargs.pop('licenses', [])
|
licenses = kwargs.pop('licenses', [])
|
||||||
permissions = kwargs.pop('permissions', {})
|
permissions = kwargs.pop('permissions', {})
|
||||||
|
# FIXME: ideally this dict->list transformation should be a caller's responsibility
|
||||||
|
# but we plan to change the model soon, so getting a dict as an input here makes sense
|
||||||
if permissions:
|
if permissions:
|
||||||
permissions = list(permissions.keys())
|
permissions = list(permissions.keys())
|
||||||
platforms = kwargs.pop('platforms', [])
|
platforms = kwargs.pop('platforms', [])
|
||||||
|
Loading…
Reference in New Issue
Block a user