fix: Cannot use files in the user inputs. (#11112)
This commit is contained in:
parent
90d5765fb6
commit
8d5a1be227
5 changed files with 12 additions and 6 deletions
|
|
@ -56,8 +56,8 @@ class Account(UserMixin, db.Model):
|
|||
self._current_tenant = tenant
|
||||
|
||||
@property
|
||||
def current_tenant_id(self):
|
||||
return self._current_tenant.id
|
||||
def current_tenant_id(self) -> str | None:
|
||||
return self._current_tenant.id if self._current_tenant else None
|
||||
|
||||
@current_tenant_id.setter
|
||||
def current_tenant_id(self, value: str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue