mirror of
https://github.com/django/django.git
synced 2025-10-27 07:36:08 +00:00
Refs #29703 -- Removed QuerySetPaginator alias per deprecation timeline.
This commit is contained in:
@@ -3,7 +3,6 @@ import inspect
|
||||
import warnings
|
||||
from math import ceil
|
||||
|
||||
from django.utils.deprecation import RemovedInDjango31Warning
|
||||
from django.utils.functional import cached_property
|
||||
from django.utils.inspect import method_has_no_args
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
@@ -126,16 +125,6 @@ class Paginator:
|
||||
)
|
||||
|
||||
|
||||
class QuerySetPaginator(Paginator):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn(
|
||||
'The QuerySetPaginator alias of Paginator is deprecated.',
|
||||
RemovedInDjango31Warning, stacklevel=2,
|
||||
)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
||||
class Page(collections.abc.Sequence):
|
||||
|
||||
def __init__(self, object_list, number, paginator):
|
||||
|
||||
Reference in New Issue
Block a user