Fixes: 1) Correct query order to call nocache before get in vibes_auth/viewsets.py;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-05-28 15:22:19 +03:00
parent 0d9df63ca7
commit 34616d6cd5

View file

@ -103,7 +103,7 @@ class UserViewSet(
detail = ""
try:
uuid = urlsafe_base64_decode(request.data.get("uidb64")).decode()
user = User.objects.get(pk=uuid).nocache()
user = User.objects.nocache().get(pk=uuid)
if not user.check_token(request.data.get("token")):
return Response(
{"error": _("activation link is invalid!")},