Permissions: change from list to key/value pairs in manifest #168

Merged
Oleg-Komarov merged 6 commits from permissions-dict into main 2024-06-04 17:34:33 +02:00
Showing only changes of commit 944284520b - Show all commits

View File

@ -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