From 657cafec13d2c53c1433c729a3ded5651e1946a8 Mon Sep 17 00:00:00 2001 From: MaertHaekkinen Date: Thu, 24 Oct 2024 16:42:23 +0300 Subject: [PATCH] Fix user profile view --- ajapaik/ajapaik_profile/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajapaik/ajapaik_profile/views.py b/ajapaik/ajapaik_profile/views.py index 783c3f7c1..f3ece8ab6 100644 --- a/ajapaik/ajapaik_profile/views.py +++ b/ajapaik/ajapaik_profile/views.py @@ -22,7 +22,7 @@ def user(request, user_id): - token = ProfileMergeToken.objects.filter(used__isnull=False).order_by('used').first() + token = ProfileMergeToken.objects.filter(source_profile_id=user_id, used__isnull=False).order_by('used').first() if token is not None and token.target_profile is not None: return redirect('user', user_id=token.target_profile.id)