munch-ease-backend/api/dtos.py

14 lines
250 B
Python
Raw Normal View History

from __future__ import annotations
from common import ApiModel
class MemberRef(ApiModel):
id: int
display_name: str
# Back-compat for tests that access `.name`
@property
def name(self) -> str:
return self.display_name