]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
Problem with case insensitive tag search.
[osqa.git] / forum / views / readers.py
index 38c3c9fdc82bebc957f71daf756f1a3ca08b58a4..8e641bf7a1fbc59a44e109c1632284b9a9d44329 100644 (file)
@@ -223,7 +223,7 @@ def tags(request):
     if request.method == "GET":
         stag = request.GET.get("q", "").strip()
         if stag:
-            tags = tags.filter(name__contains=stag)
+            tags = tags.filter(name__icontains=stag)
 
     return pagination.paginated(request, ('tags', TagPaginatorContext()), {
         "tags" : tags,