mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-11 01:26:22 +01:00
py 3.8 ...
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
import re
|
import re
|
||||||
|
from typing import List
|
||||||
|
|
||||||
from django.db.models import Model, Q
|
from django.db.models import Model, Q
|
||||||
from django.http import HttpRequest, JsonResponse
|
from django.http import HttpRequest, JsonResponse
|
||||||
@@ -15,7 +16,7 @@ logger = get_extension_logger(__name__)
|
|||||||
class DataTablesView(View):
|
class DataTablesView(View):
|
||||||
|
|
||||||
model: Model = None
|
model: Model = None
|
||||||
columns: list[tuple] = []
|
columns: List[tuple] = []
|
||||||
|
|
||||||
COL_SEARCH_REGEX = r"columns\[(?P<id>[0-9]{1,})\]\[search\]\[value\]"
|
COL_SEARCH_REGEX = r"columns\[(?P<id>[0-9]{1,})\]\[search\]\[value\]"
|
||||||
COL_SEARCHABLE_REGEX = r"columns\[(?P<id>[0-9]{1,})\]\[searchable\]"
|
COL_SEARCHABLE_REGEX = r"columns\[(?P<id>[0-9]{1,})\]\[searchable\]"
|
||||||
|
|||||||
Reference in New Issue
Block a user