summaryrefslogtreecommitdiff
path: root/gitlab/mixins.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2020-01-26 17:33:53 +0100
committerMax Wittig <max.wittig95@gmail.com>2020-01-26 17:35:18 +0100
commitd1879253dae93e182710fe22b0a6452296e2b532 (patch)
tree70a2f9eb46f50fd59a55118708d1e34d660333b7 /gitlab/mixins.py
parent0b71ba4d2965658389b705c1bb0d83d1ff2ee8f2 (diff)
downloadgitlab-feat/keyset-pagination.tar.gz
feat: add global order_by option to ease paginationfeat/keyset-pagination
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r--gitlab/mixins.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py
index 2437a6f..8544499 100644
--- a/gitlab/mixins.py
+++ b/gitlab/mixins.py
@@ -124,6 +124,9 @@ class ListMixin(object):
if self.gitlab.pagination:
data.setdefault("pagination", self.gitlab.pagination)
+ if self.gitlab.order_by:
+ data.setdefault("order_by", self.gitlab.order_by)
+
# We get the attributes that need some special transformation
types = getattr(self, "_types", {})
if types: