X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4dc763d30ce6b8065c316731e2ed06220a74813c..0a428c3de0e6bcfc863f105101ec1bdb44bbf9de:/apps/catalogue/views.py?ds=sidebyside diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index c9d6ab227..f284e0a59 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -157,7 +157,7 @@ def search(request): def tags_starting_with(request): - prefix = request.GET['q'] + prefix = request.GET.get('q', '') # Prefix must have at least 2 characters if len(prefix) < 2: return HttpResponse('')