diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-26 08:13:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-26 08:13:44 +0200 |
commit | d9819042acde6cb30cbac3ef8f4fefa15a282459 (patch) | |
tree | b1bc0ff8cacc33905b4e4ffc48ec5612465866bf /gitlab/mixins.py | |
parent | 97c8619c5b07abc714417d6e5be2f553270b54a6 (diff) | |
parent | 589a9aad58383b98b5321db106e77afa0a9a761b (diff) | |
download | gitlab-d9819042acde6cb30cbac3ef8f4fefa15a282459.tar.gz |
Merge pull request #505 from jouve/config_per_page
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', {}) |