Full Working static multi tenant
This commit is contained in:
@@ -31,8 +31,7 @@ class Individual(EntityType):
|
||||
def label(self) -> str:
|
||||
# if len(self.surnames) > 0:
|
||||
# return '{} "{}" {}'.format(self.firstname, self.surnames[0], self.lastname)
|
||||
|
||||
return '{} {}'.format(self.firstname, self.lastname)
|
||||
return f"{self.firstname} {self.lastname}"
|
||||
|
||||
class Config:
|
||||
title = 'Particulier'
|
||||
|
||||
@@ -3,7 +3,7 @@ from pydantic import Field
|
||||
from .models import Entity, Institution, Individual, Corporation
|
||||
from ..core.schemas import Writer, Reader
|
||||
|
||||
class EntityRead(Entity, Reader):
|
||||
class EntityRead(Reader, Entity):
|
||||
pass
|
||||
|
||||
class EntityCreate(Writer):
|
||||
|
||||
Reference in New Issue
Block a user