[extensions-web] Fix secret list view sorting capability.



commit 3337c9d9f13bc4d9d5ac166131ed97df50d4d475
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Dec 5 22:27:08 2011 -0500

    Fix secret list view sorting capability.

 sweettooth/extensions/views.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index e4b5de3..264ecad 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -98,8 +98,7 @@ def extensions_list(request):
         queryset = queryset.order_by('name')
 
     paginator = Paginator(queryset, 10)
-    if not page:
-        page = request.GET.get('page', 1)
+    page = request.GET.get('page', 1)
     try:
         page_number = int(page)
     except ValueError:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]