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:
aditya singh rawat
2025-03-12 16:40:32 +05:30
committed by GitHub
parent ea076e10a9
commit 399c6beefa
2 changed files with 3 additions and 1 deletions

View File

@@ -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()

View File

@@ -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")))