diff --git a/onadata/apps/api/viewsets/data_viewset.py b/onadata/apps/api/viewsets/data_viewset.py index aa1b0a7828..3b69f03da1 100644 --- a/onadata/apps/api/viewsets/data_viewset.py +++ b/onadata/apps/api/viewsets/data_viewset.py @@ -526,7 +526,8 @@ def set_object_list( xform, query=query, sort=sort, start_index=start, limit=limit, fields=fields ) - self.etag_hash = get_etag_hash_from_query(records, sql, params) + self.etag_hash = get_etag_hash_from_query( + records, sql, params) except ValueError as e: raise ParseError(text(e)) except DataError as e: diff --git a/onadata/libs/pagination.py b/onadata/libs/pagination.py index 61b36c3c1a..b25c94dae1 100644 --- a/onadata/libs/pagination.py +++ b/onadata/libs/pagination.py @@ -1,5 +1,6 @@ from django.core.paginator import Paginator -from rest_framework.pagination import PageNumberPagination, InvalidPage, NotFound +from rest_framework.pagination import ( + PageNumberPagination, InvalidPage, NotFound) class StandardPageNumberPagination(PageNumberPagination):