Make user handle search to be case insensitive (#474)

pull/475/head
Humberto Rocha 2023-01-25 21:17:52 -05:00 zatwierdzone przez GitHub
rodzic 425c77e085
commit 5dd2ebee29
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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