mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-20 17:41:55 +02:00
Update translations
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from django.db import models
|
||||
from django.urls import reverse_lazy
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
import django_tables2 as tables
|
||||
from django_tables2 import A
|
||||
|
||||
@ -8,9 +9,12 @@ from .models import Billing
|
||||
|
||||
|
||||
class BillingTable(tables.Table):
|
||||
id = tables.LinkColumn("treasury:billing_update", args=[A("pk")])
|
||||
id = tables.LinkColumn("treasury:billing_update",
|
||||
args=[A("pk")],
|
||||
text=lambda record: _("Billing #{:d}").format(record.id),)
|
||||
|
||||
render = tables.LinkColumn("treasury:billing_render",
|
||||
billing = tables.LinkColumn("treasury:billing_render",
|
||||
verbose_name=_("Billing"),
|
||||
args=[A("pk")],
|
||||
accessor="pk",
|
||||
text="",
|
||||
@ -25,4 +29,4 @@ class BillingTable(tables.Table):
|
||||
}
|
||||
model = Billing
|
||||
template_name = 'django_tables2/bootstrap4.html'
|
||||
fields = ('id', 'name', 'subject', 'acquitted', 'render', )
|
||||
fields = ('id', 'name', 'subject', 'acquitted', 'billing', )
|
||||
|
Reference in New Issue
Block a user