Added extra_info field to Book model.
[wolnelektury.git] / apps / catalogue / views.py
index c9d6ab2..f284e0a 100644 (file)
@@ -157,7 +157,7 @@ def search(request):
 
 
 def tags_starting_with(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('')
     # Prefix must have at least 2 characters
     if len(prefix) < 2:
         return HttpResponse('')