Skip to content

Commit

Permalink
fix(users): iexact 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 12762f4 commit e707d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/v1/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def post(self, request):
user_data = {'invited_by_code': None}

if invited_by_code:
user = User.objects.filter(invite_code=invited_by_code)
user = User.objects.filter(invite_code__iexact=invited_by_code)
if not user.exists():
return Response(
{'invited_by_code': 'Неверный реферальный код.'},
Expand Down

0 comments on commit e707d2c

Please sign in to comment.