From a66d9d1b91135ef3fbb2dc68c6cf4e9218834e38 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 14 Dec 2023 12:14:14 +0100 Subject: [PATCH] fix trans in table --- idhub/admin/tables.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/idhub/admin/tables.py b/idhub/admin/tables.py index 7ce7d43..078217c 100644 --- a/idhub/admin/tables.py +++ b/idhub/admin/tables.py @@ -1,4 +1,5 @@ import django_tables2 as tables +from django.utils.translation import gettext_lazy as _ from idhub.models import Rol, Event from idhub_auth.models import User @@ -18,9 +19,9 @@ class RolesTable(tables.Table): class DashboardTable(tables.Table): - type = tables.Column(verbose_name="Event") - message = tables.Column(verbose_name="Description") - created = tables.Column(verbose_name="Date") + type = tables.Column(verbose_name=_("Event")) + message = tables.Column(verbose_name=_("Description")) + created = tables.Column(verbose_name=_("Date")) class Meta: model = Event