Make user handle search to be case insensitive (#474)
This commit is contained in:
parent
425c77e085
commit
5dd2ebee29
|
@ -59,7 +59,7 @@ class SearchService:
|
|||
else:
|
||||
for identity in Identity.objects.filter(username=handle)[:20]:
|
||||
results.add(identity)
|
||||
for identity in Identity.objects.filter(username__startswith=handle)[:20]:
|
||||
for identity in Identity.objects.filter(username__istartswith=handle)[:20]:
|
||||
results.add(identity)
|
||||
return results
|
||||
|
||||
|
|
Loading…
Reference in New Issue