forked from github/plane
fix: workpsace id during token creation
This commit is contained in:
parent
0b7f0640c9
commit
f69b76c77d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user