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:
@ -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)
|
||||
|
Reference in New Issue
Block a user