fix: Add reconstructor to initialize transient fields
Introduces a reconstructor method to ensure that transient fields such as 'role' and '_current_tenant' are initialized upon loading an instance of the Account model. This change improves the object's state consistency, especially when instances are reloaded from the database, ensuring these fields are set to 'None' by default. Signed-off-by: -LAN- <laipz8200@outlook.com>pull/19980/head
parent
1d4f4fcefd
commit
d12de3d532
Loading…
Reference in New Issue