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