fix: workpsace id during token creation

This commit is contained in:
pablohashescobar 2023-02-06 22:52:20 +05:30
parent 0b7f0640c9
commit f69b76c77d

View File

@ -24,7 +24,7 @@ class ApiTokenEndpoint(BaseAPIView):
)
api_token = APIToken.objects.create(
label=label, user=request.user, workspace=workspace
label=label, user=request.user, workspace_id=workspace
)
serializer = APITokenSerializer(api_token)