collection browsing: remove pagination support

rationale: we do not expect hundreds of collection (and it was likely broken
anyhow)

thanks to Elrond der Elbenfuerst for pointing this out
This commit is contained in:
Stefano Zacchiroli 2013-01-15 23:04:37 +01:00
parent 413fc1c266
commit 947f38c0b9

View File

@ -338,20 +338,16 @@ def user_collection(request, page, url_user=None):
@active_user_from_url
@uses_pagination
def user_collections(request, page, url_user=None):
def user_collections(request, url_user=None):
"""A User-defined Collection"""
collections = Collection.query.filter_by(
get_creator=url_user)
pagination = Pagination(page, collections)
return render_to_response(
request,
'mediagoblin/user_pages/collections.html',
{'user': url_user,
'collections': collections,
'pagination': pagination})
'collections': collections})
@get_user_collection_item