Revised the coding style in the title setter of the Account data model.
This commit is contained in:
parent
895bca2508
commit
6bf18be455
@ -187,8 +187,7 @@ class Account(db.Model):
|
|||||||
if l10n.locale == current_locale:
|
if l10n.locale == current_locale:
|
||||||
l10n.title = value
|
l10n.title = value
|
||||||
return
|
return
|
||||||
self.l10n.append(AccountL10n(
|
self.l10n.append(AccountL10n(locale=current_locale, title=value))
|
||||||
locale=current_locale, title=value))
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def find_by_code(cls, code: str) -> t.Self | None:
|
def find_by_code(cls, code: str) -> t.Self | None:
|
||||||
|
Loading…
Reference in New Issue
Block a user