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