From bb95bc97fc2745c10ecd54861388e4dfae09548d Mon Sep 17 00:00:00 2001 From: Horilla Date: Thu, 11 Sep 2025 12:28:16 +0530 Subject: [PATCH] [UPDT] ASSET: Update asset app to latest style --- asset/cbv/asset.py | 5 ++--- asset/templates/cbv/asset/detail_action.html | 2 +- asset/templates/cbv/asset_batch_no/detail_actions.html | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/asset/cbv/asset.py b/asset/cbv/asset.py index c9e36d7ab..27c643ff0 100644 --- a/asset/cbv/asset.py +++ b/asset/cbv/asset.py @@ -3,11 +3,10 @@ from typing import Any from django.utils.decorators import method_decorator from django.utils.translation import gettext_lazy as _ -from horilla_views.cbv_methods import login_required, permission_required -from horilla_views.generic.cbv.views import HorillaDetailedView, HorillaListView - from asset.filters import AssetFilter from asset.models import Asset +from horilla_views.cbv_methods import login_required, permission_required +from horilla_views.generic.cbv.views import HorillaDetailedView, HorillaListView @method_decorator(login_required, name="dispatch") diff --git a/asset/templates/cbv/asset/detail_action.html b/asset/templates/cbv/asset/detail_action.html index 191f9014e..75d4ab9bc 100644 --- a/asset/templates/cbv/asset/detail_action.html +++ b/asset/templates/cbv/asset/detail_action.html @@ -23,4 +23,4 @@ {% endif %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/asset/templates/cbv/asset_batch_no/detail_actions.html b/asset/templates/cbv/asset_batch_no/detail_actions.html index c81d94f9b..e1a964cc1 100644 --- a/asset/templates/cbv/asset_batch_no/detail_actions.html +++ b/asset/templates/cbv/asset_batch_no/detail_actions.html @@ -24,4 +24,4 @@ -{% endif %} \ No newline at end of file +{% endif %}