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:
parent
60a7eb9ca5
commit
38905733e8
@ -90,7 +90,7 @@ def user_gallery(request, page, url_user=None):
|
|||||||
if tag:
|
if tag:
|
||||||
cursor = cursor.filter(
|
cursor = cursor.filter(
|
||||||
MediaEntry.tags_helper.any(
|
MediaEntry.tags_helper.any(
|
||||||
MediaTag.name == request.matchdict['tag']))
|
MediaTag.slug == request.matchdict['tag']))
|
||||||
|
|
||||||
# Paginate gallery
|
# Paginate gallery
|
||||||
pagination = Pagination(page, cursor)
|
pagination = Pagination(page, cursor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user