mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: refc code to use dictionary serialization instead of model_dump()
This commit is contained in:
parent
7d86ff4a85
commit
b57e6e55ce
6 changed files with 9 additions and 7 deletions
|
|
@ -279,9 +279,9 @@ async def install_default_elements(db_session: Session):
|
|||
)
|
||||
|
||||
# Serialize rights to JSON
|
||||
role_global_admin.rights = role_global_admin.rights.model_dump() # type: ignore
|
||||
role_global_maintainer.rights = role_global_maintainer.rights.model_dump() # type: ignore
|
||||
role_global_user.rights = role_global_user.rights.model_dump() # type: ignore
|
||||
role_global_admin.rights = role_global_admin.rights.dict() # type: ignore
|
||||
role_global_maintainer.rights = role_global_maintainer.rights.dict() # type: ignore
|
||||
role_global_user.rights = role_global_user.rights.dict() # type: ignore
|
||||
|
||||
# Insert roles in DB
|
||||
db_session.add(role_global_admin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue