Correcting bug caused y Entity name collision
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user