From 759fed7a8b0d78b79f0ced83fddc767daa3967bf Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 14 Dec 2016 13:53:00 +0100 Subject: [PATCH] OrderExtendForm: Allow to set today --- src/pretix/control/forms/orders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/forms/orders.py b/src/pretix/control/forms/orders.py index b6eef27b5..173f7dbe6 100644 --- a/src/pretix/control/forms/orders.py +++ b/src/pretix/control/forms/orders.py @@ -21,9 +21,9 @@ class ExtendForm(I18nModelForm): def clean(self): data = super().clean() + data['expires'] = data['expires'].replace(hour=23, minute=59, second=59) if data['expires'] < now(): raise ValidationError(_('The new expiry date needs to be in the future.')) - data['expires'] = data['expires'].replace(hour=23, minute=59, second=59) return data