3
0
Fork 0

fix: add model title hints to core models

This commit is contained in:
Lance Edgar 2025-12-31 18:55:27 -06:00
parent ab0a6e72fe
commit 8d43c294d0
2 changed files with 12 additions and 0 deletions

View file

@ -282,6 +282,10 @@ class UserRole(Base): # pylint: disable=too-few-public-methods
__tablename__ = "user_x_role"
__versioned__ = {}
__wutta_hint__ = {
"model_title": "User Role",
"model_title_plural": "User Roles",
}
uuid = uuid_column()
@ -312,6 +316,10 @@ class UserAPIToken(Base): # pylint: disable=too-few-public-methods
"""
__tablename__ = "user_api_token"
__wutta_hint__ = {
"model_title": "User API Token",
"model_title_plural": "User API Tokens",
}
uuid = uuid_column()

View file

@ -166,6 +166,10 @@ class Person(Base):
__tablename__ = "person"
__versioned__ = {}
__wutta_hint__ = {
"model_title": "Person",
"model_title_plural": "People",
}
uuid = uuid_column()