Added the init_app function to the "accounting.utils.next_url" module to initialize the template filters, and apply it to the init_app function of the accounting application.

This commit is contained in:
2023-02-07 17:10:03 +08:00
parent 699db20308
commit 8e524674a3
2 changed files with 14 additions and 5 deletions

View File

@ -66,9 +66,7 @@ def init_app(app: Flask, user_utils: AbstractUserUtils,
from . import currency
currency.init_app(app, bp)
from .utils.next_url import append_next, inherit_next, or_next
bp.add_app_template_filter(append_next, "append_next")
bp.add_app_template_filter(inherit_next, "inherit_next")
bp.add_app_template_filter(or_next, "or_next")
from .utils import next_url
next_url.init_app(bp)
app.register_blueprint(bp)