From 8fe56b72786a7e0e66311d6729c42637d2afdfcc Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 19 Jan 2023 10:50:57 +0100 Subject: [PATCH] Export: Fix date range validation --- src/pretix/base/timeframes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/timeframes.py b/src/pretix/base/timeframes.py index 8727d15cb5..72b4d1fa3f 100644 --- a/src/pretix/base/timeframes.py +++ b/src/pretix/base/timeframes.py @@ -379,7 +379,7 @@ class DateFrameField(forms.MultiValueField): if value[0] == 'custom': if not value[1] and not value[2]: raise ValidationError(self.error_messages['incomplete']) - if value[1] and value[2] and value[2] < value[1]: + if value[1] and value[2] and self.fields[2].to_python(value[2]) < self.fields[1].to_python(value[1]): raise ValidationError(self.error_messages['inconsistent']) return super().clean(value)