Skip to content

Commit

Permalink
refactor: Update UsersByTagViewSet to filter users by "language" inst…
Browse files Browse the repository at this point in the history
…ead of "languages"
  • Loading branch information
albertoleoncio committed Jul 22, 2024
1 parent c03b300 commit 546ee89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def retrieve(self, request, *args, **kwargs):
'wanted': [{'id': user.id, 'display_name': user.display_name, 'username': user.user.username, 'profile_image': user.profile_image} for user in wanted_users],
}
elif tag_type == 'language':
users = Profile.objects.filter(languages=tag_id)
users = Profile.objects.filter(language=tag_id)
data = [{'id': user.id, 'display_name': user.display_name, 'username': user.user.username, 'profile_image': user.profile_image} for user in users]
elif tag_type == 'territory':
users = Profile.objects.filter(territory=tag_id)
Expand Down

0 comments on commit 546ee89

Please sign in to comment.