From 868eea79bf11b572d00a2cc5163574e476689138 Mon Sep 17 00:00:00 2001 From: ewandor Date: Sun, 12 Mar 2023 13:43:49 +0100 Subject: [PATCH] Finishing translation of entity module --- back/app/entity/models.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/back/app/entity/models.py b/back/app/entity/models.py index 14ce4592..3dfe3108 100644 --- a/back/app/entity/models.py +++ b/back/app/entity/models.py @@ -36,14 +36,19 @@ class Individual(EntityType): class Employee(BaseModel): - role: Indexed(str) + role: Indexed(str) = Field(title='Poste') entity_id: str = Field(foreignKey={ "reference": { "resource": "entity", "schema": "Entity", "condition": "entity_data.type=individual" } - }) + }, + title='Employé' + ) + + class Config: + title = 'Fiche Employé' class Corporation(EntityType):