collection browsing: remove pagination support
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 15 Jan 2013 22:04:37 +0000 (23:04 +0100)
committerStefano Zacchiroli <zack@upsilon.cc>
Tue, 15 Jan 2013 22:04:37 +0000 (23:04 +0100)
rationale: we do not expect hundreds of collection (and it was likely broken
anyhow)

thanks to Elrond der Elbenfuerst for pointing this out

mediagoblin/user_pages/views.py

index 6ff07818a89db32685f444cd342fb88edad2e977..9fbe953b339bcdd8332b939fccce8296e69ea576 100644 (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