X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4dc763d30ce6b8065c316731e2ed06220a74813c..cc66b8d67b345b06b64b0f5de646baf09b8fbcd8:/apps/catalogue/views.py 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('')