Apply suggestion to pedagogy/views.py

This commit is contained in:
Antoine Bartuccio 2019-07-10 12:12:56 +02:00
parent 07fc1014be
commit 49f928e754

View File

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