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::