diff --git a/src/api/src/backend/views/GroupSecrets.py b/src/api/src/backend/views/GroupSecrets.py index 39c4e297..6f9f3ac7 100644 --- a/src/api/src/backend/views/GroupSecrets.py +++ b/src/api/src/backend/views/GroupSecrets.py @@ -72,7 +72,7 @@ def post(self, request, group_id, *_, **__): return Forbidden(message="You do not have access to this group") # Fetch the secret - secret = Secret.object.filter( + secret = Secret.objects.filter( secret_id=secret_id, tenant_id=request.tenant_id, owner=request.username @@ -89,7 +89,7 @@ def post(self, request, group_id, *_, **__): return Conflict(message=f"A GroupSecret already exists with id '{group_secret_id}'") # Create group secret - group_secret = GroupSecret.object.create( + group_secret = GroupSecret.objects.create( id=group_secret_id, group=group, secret=secret