mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
API: Fix parsing of time frames for exporters
This commit is contained in:
@@ -394,6 +394,8 @@ class SerializerDateFrameField(serializers.CharField):
|
||||
resolve_timeframe_to_dates_inclusive(now(), data, timezone.utc)
|
||||
except:
|
||||
raise ValidationError("Invalid date frame")
|
||||
else:
|
||||
return data
|
||||
|
||||
def to_representation(self, value):
|
||||
if value is None:
|
||||
|
||||
Reference in New Issue
Block a user