add js to prevent illegal inputs

This commit is contained in:
Lukas Bockstaller
2026-05-07 10:53:52 +02:00
parent 8adc649c4c
commit 4db98def79
4 changed files with 50 additions and 1 deletions

View File

@@ -21,7 +21,7 @@
#
import datetime
from collections import namedtuple
from typing import Union
from typing import Tuple, Union
from zoneinfo import ZoneInfo
from dateutil import parser
@@ -42,6 +42,7 @@ EVENT_CHOICES = (
('presale_end', _('Presale end')),
)
# extend NO_BEFORE_VALUES in reldate.js if changed
ORDER_CHOICES = (
('datetime', _('Moment of order')),
)