Move pagination utils into own module

This continues the pattern established in [1], just to chip away a
bit more at the random collection of stuff in utils/__init__.py.

[1]: https://github.com/alphagov/notifications-admin/pull/3923
This commit is contained in:
Ben Thorner
2021-06-14 11:00:05 +01:00
parent 44cf2b16b5
commit edb0b8214d
8 changed files with 62 additions and 64 deletions

View File

@@ -30,12 +30,11 @@ from app.utils import (
DELIVERED_STATUSES,
FAILURE_STATUSES,
REQUESTED_STATUSES,
generate_next_dict,
generate_previous_dict,
get_current_financial_year,
service_has_permission,
)
from app.utils.csv import Spreadsheet
from app.utils.pagination import generate_next_dict, generate_previous_dict
from app.utils.user import user_has_permissions