mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Disable shop and waiting list after end of event
This commit is contained in:
@@ -321,7 +321,7 @@ class OrderError(LazyLocaleException):
|
||||
def _check_date(event: Event, now_dt: datetime):
|
||||
if event.presale_start and now_dt < event.presale_start:
|
||||
raise OrderError(error_messages['not_started'])
|
||||
if event.presale_end and now_dt > event.presale_end:
|
||||
if event.presale_has_ended:
|
||||
raise OrderError(error_messages['ended'])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user