mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixes #14873 -- A paginated ListView with a List instead of queryset produces an error.
Additional minor change in functionality: the page is now not considered paginated if the objects do not span multiple pages according to the paginator. This will only affect views with a custom paginator method which uses orphans. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b37d867929
commit
ff8711a825
4 changed files with 16 additions and 9 deletions
|
|
@ -98,6 +98,8 @@ urlpatterns = patterns('',
|
|||
# ListView
|
||||
(r'^list/dict/$',
|
||||
views.DictList.as_view()),
|
||||
(r'^list/dict/paginated/$',
|
||||
views.DictList.as_view(paginate_by=1)),
|
||||
url(r'^list/authors/$',
|
||||
views.AuthorList.as_view(),
|
||||
name="authors_list"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue