fix: inbox issue (#4765)
This commit is contained in:
parent
b5bbdbfa8e
commit
cb292b010f
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ class OffsetPaginator:
|
||||||
else (order_by[1::] if order_by.startswith("-") else order_by,)
|
else (order_by[1::] if order_by.startswith("-") else order_by,)
|
||||||
)
|
)
|
||||||
# Set desc to true when `-` exists in the order by
|
# Set desc to true when `-` exists in the order by
|
||||||
self.desc = True if order_by.startswith("-") else False
|
self.desc = True if order_by and order_by.startswith("-") else False
|
||||||
self.queryset = queryset
|
self.queryset = queryset
|
||||||
self.max_limit = max_limit
|
self.max_limit = max_limit
|
||||||
self.max_offset = max_offset
|
self.max_offset = max_offset
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue