1
0
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:
Simon Charette
2017-04-20 22:44:15 -04:00
parent c52ae33a0c
commit c0f12a098c
3 changed files with 18 additions and 5 deletions

View File

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