Skip to content

Commit

Permalink
Update docs/pages/custom-data.rst
Browse files Browse the repository at this point in the history
updated documentation based on feedback

Co-authored-by: Jan Pieter Waagmeester <[email protected]>
  • Loading branch information
ruddra and jieter authored Oct 18, 2023
1 parent a91df29 commit 6a4db89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/custom-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Moreover, you can use `accessor` with the table columns to access nested values.

>>> data = [{"abc": {"one": {"two": "three"}}}, {"abc": {"one": {"two": "four"}}}]
>>> class MyTable(tables.Table):
... abc = tables.Column(accessor="abc__one__two") # or abc.one.two
... abc = tables.Column(accessor="abc__one__two")
>>> table = MyTable(data)
>>> list(map(str, table.rows[1]))
['four']
Expand Down

0 comments on commit 6a4db89

Please sign in to comment.