From 64645ed7fbadc7fa647eb2c372af22865ed102f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Jim=C3=A9nez?= <39047733+ejimsan@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:34:02 +0100 Subject: [PATCH] Make archaeology date start optional (#580) --- ebl/fragmentarium/application/date_schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebl/fragmentarium/application/date_schemas.py b/ebl/fragmentarium/application/date_schemas.py index 530843809..dd3ba0df6 100644 --- a/ebl/fragmentarium/application/date_schemas.py +++ b/ebl/fragmentarium/application/date_schemas.py @@ -28,7 +28,7 @@ def remove_empty_fields(self, data: dict, **kwargs): class DateRangeSchema(Schema): - start = fields.Nested(PartialDateSchema, required=True) + start = fields.Nested(PartialDateSchema, allow_none=True) end = fields.Nested(PartialDateSchema, allow_none=True) notes = fields.String(allow_none=True)