forked from CGM_Public/pretix_original
Fix typo
This commit is contained in:
@@ -33,7 +33,7 @@ def shred_constraints(event: Event):
|
|||||||
max_to=Max('date_to'),
|
max_to=Max('date_to'),
|
||||||
max_fromto=Greatest(Max('date_to'), Max('date_from'))
|
max_fromto=Greatest(Max('date_to'), Max('date_from'))
|
||||||
)
|
)
|
||||||
max_date = max_date['max_fromto'] or max_date['max_to'] or max_date['max_From']
|
max_date = max_date['max_fromto'] or max_date['max_to'] or max_date['max_from']
|
||||||
if max_date > now() - timedelta(days=60):
|
if max_date > now() - timedelta(days=60):
|
||||||
return _('Your event needs to be over for at least 60 days to use this feature.')
|
return _('Your event needs to be over for at least 60 days to use this feature.')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user