Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create() takes 1 positional argument but 3 were given #259

Open
Aiyom opened this issue Nov 23, 2021 · 0 comments
Open

create() takes 1 positional argument but 3 were given #259

Aiyom opened this issue Nov 23, 2021 · 0 comments

Comments

@Aiyom
Copy link

Aiyom commented Nov 23, 2021

create() takes 1 positional argument but 3 were given
home/aiyom/PycharmProjects/recommerce-back/market/venv/lib/python3.9/site-packages/knox/views.py, line 65, in post
return Response(
{"error": "Maximum amount of tokens allowed per user exceeded."},
status=status.HTTP_403_FORBIDDEN
)
token_ttl = self.get_token_ttl()
print(token_ttl)
print(request.user)
instance, token = AuthToken.objects.create(request.user, token_ttl) …
print(instance, token)
user_logged_in.send(sender=request.user.class,
request=request, user=request.user)
data = self.get_post_response_data(request, token, instance)
return Response(data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant