Logo
Explore Help
Sign In
Django/django
11
0
Fork 0
You've already forked django
Code Pull Requests Projects Releases Activity
django/tests/regressiontests/pagination_regress/models.py
Gary Wilson Jr 96cf3656c4 Fixed #6997 -- Corrected num_pages calculation when one item is in the 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
2008-07-28 05:30:35 +00:00

2 lines
32 B
Python
Raw Blame History

# Models file for tests to run.
View Git Blame Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 54ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API