From fe0afba423b6ab4bbe5c4e10956b4530d7ccabdb Mon Sep 17 00:00:00 2001 From: Ernesto Perez Amigo Date: Thu, 5 Oct 2017 16:44:03 -0500 Subject: [PATCH] Working to make the configuration of the page more friendly --- graphene_django_extras/pagination/pagination.py | 4 ---- graphene_django_extras/settings.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/graphene_django_extras/pagination/pagination.py b/graphene_django_extras/pagination/pagination.py index deddb1d..03aa945 100644 --- a/graphene_django_extras/pagination/pagination.py +++ b/graphene_django_extras/pagination/pagination.py @@ -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 diff --git a/graphene_django_extras/settings.py b/graphene_django_extras/settings.py index faff216..1707ccc 100644 --- a/graphene_django_extras/settings.py +++ b/graphene_django_extras/settings.py @@ -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, }