use case-insensitive form of tag filter on queries
[mediagoblin-libreplanet.git] / mediagoblin_libreplanet / views.py
index 4163f8e..ceb96b6 100644 (file)
@@ -16,7 +16,7 @@
 
 from mediagoblin import mg_globals
 from mediagoblin.db.models import MediaEntry
-from mediagoblin.db.util import media_entries_for_tag_slug
+from lp_helper import media_entries_for_tag_slug_case_insensitive
 from mediagoblin.tools.pagination import Pagination
 from mediagoblin.tools.response import render_to_response
 from mediagoblin.decorators import uses_pagination
@@ -25,7 +25,7 @@ def type_listing(media_type, title, request, page, tag=None):
     if (tag == None):
         cursor = MediaEntry.query
     else:
-        cursor = media_entries_for_tag_slug(request.db, tag)
+        cursor = media_entries_for_tag_slug_case_insensitive(request.db, tag)
 
     cursor = cursor.\
              filter((MediaEntry.media_type == media_type)