From 38905733e89b446c7c932578c722361717f092fe Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 21 Feb 2013 16:13:56 -0600 Subject: [PATCH] Fixing user gallery tags filter to be on slug rather than name. This commit sponsored by Kat Walsh. Thanks, Kat! --- mediagoblin/user_pages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1