1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

Update Django Tables 2, change accessor from dot to __

This commit is contained in:
Yohann D'ANELLO
2020-09-01 17:58:58 +02:00
parent 819795c1f9
commit 361ea8cad3
6 changed files with 14 additions and 14 deletions

View File

@ -95,7 +95,7 @@ class SpecialTransactionTable(tables.Table):
# Display add and remove buttons. Use the `exclude` field to select what is needed.
remittance_add = tables.LinkColumn("treasury:link_transaction",
verbose_name=_("Remittance"),
args=[A("specialtransactionproxy.pk")],
args=[A("specialtransactionproxy__pk")],
text=_("Add"),
attrs={
'a': {'class': 'btn btn-primary'}
@ -103,7 +103,7 @@ class SpecialTransactionTable(tables.Table):
remittance_remove = tables.LinkColumn("treasury:unlink_transaction",
verbose_name=_("Remittance"),
args=[A("specialtransactionproxy.pk")],
args=[A("specialtransactionproxy__pk")],
text=_("Remove"),
attrs={
'a': {'class': 'btn btn-primary btn-danger'}