Refactor user, room, and inventory models to replace 'full_name' property with 'identifier' for consistency; update related templates and routes accordingly.
This commit is contained in:
parent
d12023ecd1
commit
462c077681
13 changed files with 129 additions and 88 deletions
|
@ -31,7 +31,7 @@ class User(db.Model, ImageAttachable):
|
|||
image: Mapped[Optional['Image']] = relationship('Image', back_populates='user', passive_deletes=True)
|
||||
|
||||
@property
|
||||
def full_name(self) -> str:
|
||||
def identifier(self) -> str:
|
||||
return f"{self.first_name or ''} {self.last_name or ''}".strip()
|
||||
|
||||
def __init__(self, first_name: Optional[str] = None, last_name: Optional[str] = None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue