summaryrefslogtreecommitdiff
path: root/tests/regressiontests/pagination_regress
AgeCommit message (Collapse)Author
2012-11-08Merged pagination testsClaude Paroz
It is simpler/cleaner to have all pagination tests in a single file. Refs #16122.
2012-08-16[py3k] Fixed pagination_regress tests.Alex Gaynor
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2011-04-22Fixed #13689 -- Convert the per_page value to an integer upon initialization ↵Jannis Leidel
of the Paginator class to prevent unpleasant TypeErrors. Thanks, rbanffy, Eric Florenzano and Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16073 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-13Fixes Paginator.validate_number not raising a PageNotAnInteger exception ↵Chris Beaven
when passed a non-int-castable type. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-06Fixes #11596 -- Make paginator.Page iterableChris Beaven
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft ↵Russell Keith-Magee
patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-28A few corrections to my docstrings in [8129].Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-28Fixed #6997 -- Corrected `num_pages` calculation when one item is in the ↵Gary Wilson Jr
object list and `allow_empty_first_page=False`, thanks to framos for the report. Also, made Page's `start_index()` return 0 if there are no items in the object list (previously it was returning 1, but now it is consistent with `end_index()`). As an added bonus, I threw in quite a few pagination tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8129 bcc190cf-cafb-0310-a4f2-bffc1f526a37