diff options
author | Stefano Zacchiroli <zack@upsilon.cc> | 2013-01-15 23:04:37 +0100 |
---|---|---|
committer | Stefano Zacchiroli <zack@upsilon.cc> | 2013-01-15 23:04:37 +0100 |
commit | 947f38c0b92d967a3e16061ec067da4e21a51ae2 (patch) | |
tree | e2ffb32e4f5f4a8cda0a62e7fabf97a21e3a1629 | |
parent | 413fc1c266cc87fc3bfeba804ddd5389d40cac39 (diff) | |
download | mediagoblin-947f38c0b92d967a3e16061ec067da4e21a51ae2.tar.lz mediagoblin-947f38c0b92d967a3e16061ec067da4e21a51ae2.tar.xz mediagoblin-947f38c0b92d967a3e16061ec067da4e21a51ae2.zip |
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
-rw-r--r-- | mediagoblin/user_pages/views.py | 8 |
1 files changed, 2 insertions, 6 deletions
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 |