Skip to content

Commit

Permalink
Fix user profile view
Browse files Browse the repository at this point in the history
  • Loading branch information
MaertHaekkinen committed Oct 24, 2024
1 parent 4cabb2b commit 657cafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajapaik/ajapaik_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 657cafe

Please sign in to comment.