mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #35945 -- Added async interface to Paginator
This commit is contained in:
parent
6be278e3ad
commit
25f3495464
@ -1,4 +1,4 @@
|
||||
from django.core.paginator import Page, Paginator, AsyncPaginator, AsyncPage
|
||||
from django.core.paginator import AsyncPage, AsyncPaginator, Page, Paginator
|
||||
|
||||
|
||||
class ValidAdjacentNumsPage(Page):
|
||||
|
@ -4,14 +4,16 @@ import warnings
|
||||
from datetime import datetime
|
||||
|
||||
from django.core.paginator import (
|
||||
AsyncPaginator,
|
||||
EmptyPage,
|
||||
InvalidPage,
|
||||
PageNotAnInteger,
|
||||
Paginator,
|
||||
UnorderedObjectListWarning, AsyncPaginator,
|
||||
UnorderedObjectListWarning,
|
||||
)
|
||||
from django.test import SimpleTestCase, TestCase
|
||||
from .custom import ValidAdjacentNumsPaginator, AsyncValidAdjacentNumsPaginator
|
||||
|
||||
from .custom import AsyncValidAdjacentNumsPaginator, ValidAdjacentNumsPaginator
|
||||
from .models import Article
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user