From: Stefano Zacchiroli Date: Tue, 15 Jan 2013 22:04:37 +0000 (+0100) Subject: collection browsing: remove pagination support X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=947f38c0b92d967a3e16061ec067da4e21a51ae2;p=mediagoblin.git 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 --- diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 6ff07818..9fbe953b 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -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