From 190d9fc8e93488307b72e576bf66356b376b17fa Mon Sep 17 00:00:00 2001 From: Tyler Raborn Date: Wed, 22 Jun 2022 21:45:29 -0400 Subject: [PATCH 1/2] Fix verbage in pagination.py --- graphene_django_extras/paginations/pagination.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/graphene_django_extras/paginations/pagination.py b/graphene_django_extras/paginations/pagination.py index d83c781..68d1009 100644 --- a/graphene_django_extras/paginations/pagination.py +++ b/graphene_django_extras/paginations/pagination.py @@ -70,7 +70,7 @@ def __init__( # A string value indicating the name of the "offset" query parameter. self.offset_query_param = offset_query_param - # A string or tuple/list of strings that indicating the default ordering when obtaining lists of objects. + # A string or tuple/list of strings that indicates the default ordering when obtaining lists of objects. # Uses Django order_by syntax self.ordering_param = ordering_param @@ -97,7 +97,7 @@ def to_graphql_fields(self): description="The initial index from which to return the results. Default: 0" ), self.ordering_param: String( - description="A string or comma delimited string values that indicate the " + description="A string or comma delimited string value that indicates the " "default ordering when obtaining lists of objects." ), } @@ -155,7 +155,7 @@ def __init__( # Default ordering value: "" self.ordering = ordering - # A string or comma delimited string values that indicate the default ordering when obtaining lists of objects. + # A string or comma delimited string value that indicates the default ordering when obtaining lists of objects. # Uses Django order_by syntax self.ordering_param = ordering_param @@ -180,7 +180,7 @@ def to_graphql_fields(self): description="A page number within the result paginated set. Default: 1", ), self.ordering_param: String( - description="A string or comma delimited string values that indicate the " + description="A string or comma delimited string value that indicates the " "default ordering when obtaining lists of objects." ), } @@ -266,5 +266,5 @@ def to_graphql_fields(self): def paginate_queryset(self, qs, **kwargs): raise NotImplementedError( - "paginate_queryset() on CursorGraphqlPagination are not implemented yet." - ) + "paginate_queryset() on CursorGraphqlPagination is not implemented yet." + ) \ No newline at end of file From 1d2701cd6b8ab02eb1e2c1f5ca3b96145c902f68 Mon Sep 17 00:00:00 2001 From: Tyler Raborn Date: Wed, 22 Jun 2022 21:47:14 -0400 Subject: [PATCH 2/2] newline --- graphene_django_extras/paginations/pagination.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django_extras/paginations/pagination.py b/graphene_django_extras/paginations/pagination.py index 68d1009..2106e18 100644 --- a/graphene_django_extras/paginations/pagination.py +++ b/graphene_django_extras/paginations/pagination.py @@ -267,4 +267,4 @@ def to_graphql_fields(self): def paginate_queryset(self, qs, **kwargs): raise NotImplementedError( "paginate_queryset() on CursorGraphqlPagination is not implemented yet." - ) \ No newline at end of file + )