Skip to content
Snippets Groups Projects
Verified Commit 6a988938 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix columns

parent 993c299c
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ from django_tables2 import (
Column,
DateTimeColumn,
LinkColumn,
RelatedLinkColumn,
Table,
)
from django_tables2.utils import A, AttributeDict, computed_values
......@@ -24,7 +23,7 @@ class CardTable(Table):
class Meta:
attrs = {"class": "highlight"}
person = RelatedLinkColumn()
person = LinkColumn("card", verbose_name=_("Person"), args=[A("pk")])
chip_number = LinkColumn("card", verbose_name=_("Chip number"), args=[A("pk")])
current_status = Column(verbose_name=_("Current status"), accessor=A("pk"))
valid_until = Column(verbose_name=_("Valid until"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment