Skip to content

Commit

Permalink
Working to make the configuration of the page more friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernesto Perez Amigo committed Oct 5, 2017
1 parent d494445 commit fe0afba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions graphene_django_extras/pagination/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ def __init__(self, default_limit=graphql_api_settings.PAGE_SIZE, max_limit=None,

self._field = LimitOffsetPaginationField

if not default_limit:
raise ValueError(_('You must specify a value for \'default_limit\' on LimitOffsetGraphqlPagination object '
'or set global \'PAGE_SIZE\' on GRAPHENE_DJANGO_EXTRAS dict on your settings.py'))

# A numeric value indicating the limit to use if one is not provided by the client in a query parameter.
self.default_limit = default_limit

Expand Down
2 changes: 1 addition & 1 deletion graphene_django_extras/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

DEFAULTS = {
# Pagination
'DEFAULT_PAGINATION_CLASS': None, # 'graphene_django_extras.pagination.LimitOffsetGraphqlPagination',
'DEFAULT_PAGINATION_CLASS': None, # 'graphene_django_extras.pagination.LimitOffsetGraphqlPagination'
'PAGE_SIZE': None,
}

Expand Down

0 comments on commit fe0afba

Please sign in to comment.