fix: workpsace id during token creation
This commit is contained in:
parent
0b7f0640c9
commit
f69b76c77d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue