Skip to content

Commit

Permalink
Fix typo in transform example (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgavalda committed Mar 12, 2024
1 parent be505d8 commit c592b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_tables2/columns/manytomanycolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit c592b7b

Please sign in to comment.