]> git.openstreetmap.org Git - osqa.git/commitdiff
Problem with case insensitive tag search.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 10 Nov 2010 11:46:20 +0000 (11:46 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Wed, 10 Nov 2010 11:46:20 +0000 (11:46 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@614 0cfe37f9-358a-4d5e-be75-b63607b5c754

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:
     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,
 
     return pagination.paginated(request, ('tags', TagPaginatorContext()), {
         "tags" : tags,