Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Lowered default REDISBOARD_ITEMS_PER_PAGE to 200 and fixed pagination…

… (seems Django 1.3 Page object is not iterable).
  • Loading branch information...
commit e65aadd09216062cb6b0c073af54ccb5d0dfa402 1 parent b9a5df3
@ionelmc authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  README.rst
  2. +1 −1  setup.py
  3. +2 −2 src/redisboard/views.py
View
2  README.rst
@@ -69,7 +69,7 @@ To show all the details just use::
REDISBOARD_ITEMS_PER_PAGE
-------------------------
-REDISBOARD_ITEMS_PER_PAGE - default 1000. Used for paginating the items from a list or a sorted set.
+REDISBOARD_ITEMS_PER_PAGE - default 200. Used for paginating the items from a list or a sorted set.
Screenshots
===========
View
2  setup.py
@@ -5,7 +5,7 @@
setup(
name = "django-redisboard",
- version = "0.2.3",
+ version = "0.2.4",
url = 'https://github.com/ionelmc/django-redisboard',
download_url = '',
license = 'BSD',
View
4 src/redisboard/views.py
@@ -11,7 +11,7 @@
from .utils import LazySlicingIterable
-REDISBOARD_ITEMS_PER_PAGE = getattr(settings, 'REDISBOARD_ITEMS_PER_PAGE', 1000)
+REDISBOARD_ITEMS_PER_PAGE = getattr(settings, 'REDISBOARD_ITEMS_PER_PAGE', 200)
def safeint(value):
try:
@@ -75,7 +75,7 @@ def _get_key_details(conn, db, key, page):
curry(VALUE_GETTERS[details['type']], conn, key)
),
REDISBOARD_ITEMS_PER_PAGE
- ).page(page)
+ ).page(page).object_list
else:
details['data'] = VALUE_GETTERS[details['type']](conn, key)
Please sign in to comment.
Something went wrong with that request. Please try again.