diff --git a/allianceauth/framework/datatables.py b/allianceauth/framework/datatables.py index b3494e65..56c1fa3d 100644 --- a/allianceauth/framework/datatables.py +++ b/allianceauth/framework/datatables.py @@ -1,5 +1,6 @@ from collections import defaultdict import re +from typing import List from django.db.models import Model, Q from django.http import HttpRequest, JsonResponse @@ -15,7 +16,7 @@ logger = get_extension_logger(__name__) class DataTablesView(View): model: Model = None - columns: list[tuple] = [] + columns: List[tuple] = [] COL_SEARCH_REGEX = r"columns\[(?P[0-9]{1,})\]\[search\]\[value\]" COL_SEARCHABLE_REGEX = r"columns\[(?P[0-9]{1,})\]\[searchable\]"