Permissions: change from list to key/value pairs in manifest #168
@ -103,7 +103,8 @@ class ListedExtensionsSerializer(serializers.ModelSerializer):
|
||||
'maintainer': instance.team and instance.team.name or str(instance.authors.all()[0]),
|
||||
'license': [license_iter.slug for license_iter in matching_version.licenses.all()],
|
||||
'permissions': {
|
||||
permission.slug: '-' for permission in matching_version.permissions.all()
|
||||
permission.slug: permission.help
|
||||
for permission in matching_version.permissions.all()
|
||||
},
|
||||
'platforms': [platform.slug for platform in matching_version.platforms.all()],
|
||||
# TODO: handle copyright
|
||||
|
Loading…
Reference in New Issue
Block a user