Correcting bug caused y Entity name collision

This commit is contained in:
2023-03-07 14:09:01 +01:00
parent 52ea9dfb63
commit 0d484209f6

View File

@@ -38,7 +38,7 @@ class ContractDraftUpdate(ContractDraftCreate):
pass pass
class EntityRead(BaseModel): class ForeignEntityRead(BaseModel):
label: str label: str
@@ -46,12 +46,12 @@ class PartyRead(BaseModel):
signature_affixed: bool signature_affixed: bool
signature_uuid: str = Field(format="signature-link") signature_uuid: str = Field(format="signature-link")
part: str part: str
entity: EntityRead entity: ForeignEntityRead
class ContractRead(Contract): class ContractRead(Contract):
parties: List[PartyRead] parties: List[PartyRead]
lawyer: EntityRead lawyer: ForeignEntityRead
class ContractCreate(Writer): class ContractCreate(Writer):