Fixing user gallery tags filter to be on slug rather than name.

This commit sponsored by Kat Walsh.  Thanks, Kat!
This commit is contained in:
Christopher Allan Webber 2013-02-21 16:13:56 -06:00
parent 60a7eb9ca5
commit 38905733e8

View File

@ -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)