mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Apply suggestion to pedagogy/views.py
This commit is contained in:
parent
07fc1014be
commit
49f928e754
@ -193,7 +193,7 @@ class UVListView(CanViewMixin, CanCreateUVFunctionMixin, ListView):
|
|||||||
|
|
||||||
if len(search) == 1:
|
if len(search) == 1:
|
||||||
# It's a search with only one letter
|
# It's a search with only one letter
|
||||||
# Hastack doesn't work well with only one letter
|
# Haystack doesn't work well with only one letter
|
||||||
return queryset.filter(code__istartswith=search)
|
return queryset.filter(code__istartswith=search)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user