Remove debug statement

This commit is contained in:
Christian Mäder 2019-10-11 16:31:56 +02:00 committed by GitHub
parent 2044f685cf
commit 4b1514f8d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,6 @@ with file.open('r') as stream:
group_permissions = group_details.get('permissions', []) group_permissions = group_details.get('permissions', [])
if group_permissions: if group_permissions:
group.permissions.clear() group.permissions.clear()
print("Permissions:", group.permissions.all())
for permission_codename in group_details.get('permissions', []): for permission_codename in group_details.get('permissions', []):
for permission in Permission.objects.filter(codename=permission_codename): for permission in Permission.objects.filter(codename=permission_codename):
group.permissions.add(permission) group.permissions.add(permission)