fix: fixed the issue with dynamic routes.

- The code to install regex controller was not always executed. Forced the
  exection of that by adding it to community/__init__.py
- Renoved the that code from hooks.py
This commit is contained in:
Anand Chitipothu
2021-04-07 01:19:42 +05:30
parent 3d024a289e
commit 15b8b99ae2
2 changed files with 2 additions and 3 deletions

View File

@@ -3,3 +3,5 @@ from __future__ import unicode_literals
__version__ = '0.0.1'
from .routing import install_regex_converter
install_regex_converter()

View File

@@ -127,9 +127,6 @@ scheduler_events = {
#
# auto_cancel_exempted_doctypes = ["Auto Repeat"]
from .routing import install_regex_converter
install_regex_converter()
# Add all simple route rules here
primary_rules = [
{"from_route": "/sketches", "to_route": "sketches"},