From c592b7b9fcff956499507c38d0f80b7e8b76666e Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 12 Mar 2024 18:20:39 +0100 Subject: [PATCH] Fix typo in transform example (#945) --- django_tables2/columns/manytomanycolumn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_tables2/columns/manytomanycolumn.py b/django_tables2/columns/manytomanycolumn.py index 30c9f0e0..1b09d02c 100644 --- a/django_tables2/columns/manytomanycolumn.py +++ b/django_tables2/columns/manytomanycolumn.py @@ -39,7 +39,7 @@ def name(self): # tables.py class PersonTable(tables.Table): name = tables.Column(order_by=("last_name", "first_name")) - friends = tables.ManyToManyColumn(transform=lambda user: u.name) + friends = tables.ManyToManyColumn(transform=lambda user: user.name) If only the active friends should be displayed, you can use the `filter` argument::