Added the "accounting-titleize" console command to capitalize the existing account titles that were already initialized.

This commit is contained in:
2023-07-29 12:55:27 +08:00
parent 9147744ff7
commit cd86651606
3 changed files with 102 additions and 2 deletions

View File

@@ -63,8 +63,9 @@ def init_app(app: Flask, user_utils: UserUtilityInterface,
bp.add_app_template_global(default_currency_code,
"accounting_default_currency_code")
from .commands import init_db_command
from .commands import init_db_command, titleize_command
app.cli.add_command(init_db_command)
app.cli.add_command(titleize_command)
from . import locale
locale.init_app(app, bp)