Making entity birthday optionalble
This commit is contained in:
@@ -23,10 +23,9 @@ class Individual(EntityType):
|
||||
props={"items-per-row": "4", "numbered": True},
|
||||
title="Surnoms"
|
||||
)
|
||||
day_of_birth: date = Field(title='Date de naissance')
|
||||
day_of_birth: date = Field(default=None, title='Date de naissance')
|
||||
place_of_birth: str = Field(default="", title='Lieu de naissance')
|
||||
|
||||
|
||||
@property
|
||||
def label(self) -> str:
|
||||
if len(self.surnames) > 0:
|
||||
|
||||
Reference in New Issue
Block a user