Skip to content

Commit

Permalink
Improve error message for linkify
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Jul 17, 2018
1 parent 99bb7d6 commit ea9dba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django_tables2/columns/linkcolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LinkColumn(BaseLinkColumn):
.. note ::
This column should not be used anymore, the `linkify` keyword argument to
regular columns can achieve the same results.
regular columns can be used to achieve the same results.
It's common to have the primary value in a row hyperlinked to the page
dedicated to that record.
Expand Down Expand Up @@ -157,7 +157,7 @@ class RelatedLinkColumn(LinkColumn):
.. note ::
This column should not be used anymore, the `linkify` keyword argument to
regular columns can achieve the same results.
regular columns can be used achieve the same results.
If the related object does not have a method called ``get_absolute_url``,
or if it is not callable, the link will be rendered as '#'.
Expand Down
2 changes: 1 addition & 1 deletion tests/columns/test_linkcolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Table(tables.Table):
link = tables.LinkColumn("occupation", kwargs={"pk": 1}, default="xyz")

table = Table([{}])
assert table.rows[0].get_cell("link") == "xyz"
self.assertEqual(table.rows[0].get_cell("link"), "xyz")

def test_get_absolute_url(self):
class PersonTable(tables.Table):
Expand Down

0 comments on commit ea9dba6

Please sign in to comment.