mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Fixed #28109 -- Corrected the stack level of unordered queryset pagination warnings.
Refs #26290. Thanks Tim for the review.
This commit is contained in:
@@ -100,7 +100,8 @@ class Paginator:
|
||||
warnings.warn(
|
||||
'Pagination may yield inconsistent results with an unordered '
|
||||
'object_list: {!r}'.format(self.object_list),
|
||||
UnorderedObjectListWarning
|
||||
UnorderedObjectListWarning,
|
||||
stacklevel=3
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user