Skip to content

Commit

Permalink
Merge pull request #33824 from dimagi/gh/django-user-case-sensitive
Browse files Browse the repository at this point in the history
Remove case insensitive match when fetching django user
  • Loading branch information
gherceg authored Nov 30, 2023
2 parents e8df095 + ce9b436 commit 0efdc41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corehq/apps/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ def get_django_user(self, use_primary_db=False):
queryset = User.objects
if use_primary_db:
queryset = queryset.using(router.db_for_write(User))
return queryset.get(username__iexact=self.username)
return queryset.get(username=self.username)

def add_phone_number(self, phone_number, default=False, **kwargs):
""" Don't add phone numbers if they already exist """
Expand Down

0 comments on commit 0efdc41

Please sign in to comment.