1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #35945 -- Added async interface to Paginator

This commit is contained in:
wookkl 2024-12-16 11:21:14 +09:00
parent 6be278e3ad
commit 25f3495464
2 changed files with 5 additions and 3 deletions

View File

@ -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):

View File

@ -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