From: Christopher Allan Webber Date: Thu, 21 Feb 2013 22:13:56 +0000 (-0600) Subject: Fixing user gallery tags filter to be on slug rather than name. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=38905733e89b446c7c932578c722361717f092fe;p=mediagoblin.git Fixing user gallery tags filter to be on slug rather than name. This commit sponsored by Kat Walsh. Thanks, Kat! --- diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 4056ba97..601eef17 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -90,7 +90,7 @@ def user_gallery(request, page, url_user=None): if tag: cursor = cursor.filter( MediaEntry.tags_helper.any( - MediaTag.name == request.matchdict['tag'])) + MediaTag.slug == request.matchdict['tag'])) # Paginate gallery pagination = Pagination(page, cursor)