diff --git a/accounting/views/__init__.py b/accounting/views/__init__.py index 7a9a087..ef9fbdc 100644 --- a/accounting/views/__init__.py +++ b/accounting/views/__init__.py @@ -19,7 +19,6 @@ """ import re -from datetime import timedelta from django.db import connection from django.db.models import Sum, Case, When, F, Q @@ -37,7 +36,7 @@ from accounting.utils import ReportUrl from mia import settings from mia_core.digest_auth import digest_login_required from mia_core.period import Period -from mia_core.utils import Pagination, SqlQuery +from mia_core.utils import Pagination @require_GET diff --git a/mia_core/utils.py b/mia_core/utils.py index ad3a373..e0ba1de 100644 --- a/mia_core/utils.py +++ b/mia_core/utils.py @@ -455,22 +455,3 @@ class PaginationException(Exception): def __init__(self, url): self.url = url - - -class SqlQuery: - """A SQL query statement with its parameters. - - Args: - sql (str): The SQL statement. - params (list[str]): the parameters. - - Attributes: - sql (str): The SQL statement. - params (list[str]): the parameters. - """ - sql = "" - params = [] - - def __init__(self, sql, params): - self.sql = sql - self.params = params