aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/views.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-02-21 16:13:56 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-02-21 16:13:56 -0600
commit38905733e89b446c7c932578c722361717f092fe (patch)
treeedfc9e6e8aaea25832e8bac39f8a7948a1b23444 /mediagoblin/user_pages/views.py
parent60a7eb9ca5f614a31f17158b791e1a6b7d7bf352 (diff)
downloadmediagoblin-38905733e89b446c7c932578c722361717f092fe.tar.lz
mediagoblin-38905733e89b446c7c932578c722361717f092fe.tar.xz
mediagoblin-38905733e89b446c7c932578c722361717f092fe.zip
Fixing user gallery tags filter to be on slug rather than name.
This commit sponsored by Kat Walsh. Thanks, Kat!
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r--mediagoblin/user_pages/views.py2
1 files changed, 1 insertions, 1 deletions
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)