Skip to content

Commit

Permalink
fix(users): iexact serializer filter invited_by_code
Browse files Browse the repository at this point in the history
  • Loading branch information
temirovazat committed Nov 16, 2023
1 parent e707d2c commit 221fb9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/v1/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def get_invited(self, obj):
This method retrieves the list of users invited by the current user.
"""
invited_users = User.objects.filter(invited_by_code=obj.invite_code)
invited_users = User.objects.filter(
invited_by_code__iexact=obj.invite_code
)
invited_serializer = InvitedUserSerializer(invited_users, many=True)
return invited_serializer.data

Expand Down

0 comments on commit 221fb9d

Please sign in to comment.