From d7b170164685cfa5fa9090f561cf6767f6fd0e3f Mon Sep 17 00:00:00 2001 From: Horilla Date: Thu, 6 Mar 2025 12:08:54 +0530 Subject: [PATCH] [UPDT] HORILLA VIEWS: Update html header --- horilla_views/generic/cbv/pipeline.py | 5 +++-- horilla_views/templates/generic/horilla_list_table.html | 2 +- horilla_views/templates/generic/pipeline/pipeline.html | 5 ++--- horilla_views/templatetags/generic_template_filters.py | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/horilla_views/generic/cbv/pipeline.py b/horilla_views/generic/cbv/pipeline.py index e3a04d642..b099e85b9 100644 --- a/horilla_views/generic/cbv/pipeline.py +++ b/horilla_views/generic/cbv/pipeline.py @@ -2,11 +2,12 @@ horilla_views/generic/cbv/pipeline """ -from django.views.generic import ListView from django.db import models +from django.views.generic import ListView from django_filters import FilterSet -from horilla_views.cbv_methods import get_short_uuid + from horilla.horilla_middlewares import _thread_locals +from horilla_views.cbv_methods import get_short_uuid class Pipeline(ListView): diff --git a/horilla_views/templates/generic/horilla_list_table.html b/horilla_views/templates/generic/horilla_list_table.html index 714122f6d..2cf132e23 100644 --- a/horilla_views/templates/generic/horilla_list_table.html +++ b/horilla_views/templates/generic/horilla_list_table.html @@ -92,7 +92,7 @@ {% endif %} {% endfor %} > - {{cell.0}} + {{cell.0|safe}} {% endwith %} diff --git a/horilla_views/templates/generic/pipeline/pipeline.html b/horilla_views/templates/generic/pipeline/pipeline.html index 24c82d195..54347f6fc 100644 --- a/horilla_views/templates/generic/pipeline/pipeline.html +++ b/horilla_views/templates/generic/pipeline/pipeline.html @@ -41,11 +41,11 @@ -
@@ -61,4 +61,3 @@ badge.attr("title", title); - \ No newline at end of file diff --git a/horilla_views/templatetags/generic_template_filters.py b/horilla_views/templatetags/generic_template_filters.py index a3d362b58..aa0fa22c7 100644 --- a/horilla_views/templatetags/generic_template_filters.py +++ b/horilla_views/templatetags/generic_template_filters.py @@ -77,6 +77,8 @@ def getattribute(value, attr: str): if isinstance(result, types.MethodType): result = result() value = result + else: + return getattr(value, attr, "") return result