diff options
author | Cyril Jouve <jv.cyril@gmail.com> | 2018-05-22 00:46:17 +0200 |
---|---|---|
committer | Cyril Jouve <jv.cyril@gmail.com> | 2018-05-22 02:39:46 +0200 |
commit | 589a9aad58383b98b5321db106e77afa0a9a761b (patch) | |
tree | b1bc0ff8cacc33905b4e4ffc48ec5612465866bf /gitlab/mixins.py | |
parent | 97c8619c5b07abc714417d6e5be2f553270b54a6 (diff) | |
download | gitlab-589a9aad58383b98b5321db106e77afa0a9a761b.tar.gz |
add per_page config option
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 581e3d5..013f7b7 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -114,6 +114,8 @@ class ListMixin(object): # Duplicate data to avoid messing with what the user sent us data = kwargs.copy() + if self.gitlab.per_page: + data.setdefault('per_page', self.gitlab.per_page) # We get the attributes that need some special transformation types = getattr(self, '_types', {}) |