fix: add model title hints to core models
This commit is contained in:
parent
ab0a6e72fe
commit
8d43c294d0
2 changed files with 12 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -166,6 +166,10 @@ class Person(Base):
|
|||
|
||||
__tablename__ = "person"
|
||||
__versioned__ = {}
|
||||
__wutta_hint__ = {
|
||||
"model_title": "Person",
|
||||
"model_title_plural": "People",
|
||||
}
|
||||
|
||||
uuid = uuid_column()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue