Fixed the breadcrumbs for asset module (#581)
* Fixed the breadcrumbs for asset module * Added the APP_URLS inside the ready method
This commit is contained in:
committed by
GitHub
parent
ea076e10a9
commit
399c6beefa
@@ -21,12 +21,13 @@ class AssetConfig(AppConfig):
|
||||
|
||||
def ready(self):
|
||||
from django.urls import include, path
|
||||
|
||||
from horilla.horilla_settings import APPS
|
||||
from horilla.urls import urlpatterns
|
||||
from horilla.horilla_settings import APP_URLS
|
||||
|
||||
APPS.append("asset")
|
||||
urlpatterns.append(
|
||||
path("asset/", include("asset.urls")),
|
||||
)
|
||||
APP_URLS.append("asset.urls")
|
||||
super().ready()
|
||||
|
||||
@@ -326,4 +326,5 @@ urlpatterns.append(
|
||||
)
|
||||
urlpatterns.append(path("payroll/", lambda request: redirect("view-payroll-dashboard")))
|
||||
urlpatterns.append(path("pms/", lambda request: redirect("dashboard-view")))
|
||||
urlpatterns.append(path("asset/", lambda request: redirect("asset-dashboard")))
|
||||
urlpatterns.append(path("project/", lambda request: redirect("project-dashboard-view")))
|
||||
|
||||
Reference in New Issue
Block a user