diff --git a/compensation/tables/compensation.py b/compensation/tables/compensation.py index fe3efe00..eec644bc 100644 --- a/compensation/tables/compensation.py +++ b/compensation/tables/compensation.py @@ -124,7 +124,7 @@ class CompensationTable(BaseTable, TableRenderMixin, TableOrderMixin): html += self.render_previously_checked_star( tooltip=tooltip, ) - return format_html(html) + return format_html(html, None) def render_r(self, value, record: Compensation): """ Renders the registered column for a compensation @@ -146,5 +146,5 @@ class CompensationTable(BaseTable, TableRenderMixin, TableOrderMixin): tooltip=tooltip, icn_filled=recorded, ) - return format_html(html) + return format_html(html, None) diff --git a/compensation/tables/eco_account.py b/compensation/tables/eco_account.py index 64171db0..3e70a672 100644 --- a/compensation/tables/eco_account.py +++ b/compensation/tables/eco_account.py @@ -95,7 +95,7 @@ class EcoAccountTable(BaseTable, TableRenderMixin, TableOrderMixin): txt=value, new_tab=False, ) - return format_html(html) + return format_html(html, None) def render_av(self, value, record: EcoAccount): """ Renders the available column for an eco account @@ -113,7 +113,7 @@ class EcoAccountTable(BaseTable, TableRenderMixin, TableOrderMixin): value_relative = 0 html = render_to_string("konova/widgets/progressbar.html", {"value": value_relative}) html += f"{number_format(record.deductable_rest, decimal_pos=2)} m²" - return format_html(html) + return format_html(html, None) def render_r(self, value, record: EcoAccount): """ Renders the recorded column for an eco account @@ -135,4 +135,4 @@ class EcoAccountTable(BaseTable, TableRenderMixin, TableOrderMixin): tooltip=tooltip, icn_filled=checked, ) - return format_html(html) + return format_html(html, None) diff --git a/ema/tables.py b/ema/tables.py index aa043c2c..b0d9da2c 100644 --- a/ema/tables.py +++ b/ema/tables.py @@ -88,7 +88,7 @@ class EmaTable(BaseTable, TableRenderMixin, TableOrderMixin): txt=value, new_tab=False, ) - return format_html(html) + return format_html(html, None) def render_r(self, value, record: Ema): """ Renders the registered column for a EMA @@ -110,4 +110,4 @@ class EmaTable(BaseTable, TableRenderMixin, TableOrderMixin): tooltip=tooltip, icn_filled=recorded, ) - return format_html(html) + return format_html(html, None) diff --git a/intervention/tables.py b/intervention/tables.py index 76d4018b..3e5ef695 100644 --- a/intervention/tables.py +++ b/intervention/tables.py @@ -127,7 +127,7 @@ class InterventionTable(BaseTable, TableRenderMixin, TableOrderMixin): html += self.render_previously_checked_star( tooltip=tooltip, ) - return format_html(html) + return format_html(html, None) def render_r(self, value, record: Intervention): """ Renders the recorded column for an intervention @@ -149,5 +149,5 @@ class InterventionTable(BaseTable, TableRenderMixin, TableOrderMixin): tooltip=tooltip, icn_filled=checked, ) - return format_html(html) + return format_html(html, None) diff --git a/konova/utils/tables.py b/konova/utils/tables.py index a3d83ddf..29e2d962 100644 --- a/konova/utils/tables.py +++ b/konova/utils/tables.py @@ -178,7 +178,9 @@ class TableRenderMixin: if len(value) > max_length: value = f"{value[:max_length]}..." value = format_html( - f'