From 6a4db89fe4dc40a128c8c3610c918c9ca6d8bffa Mon Sep 17 00:00:00 2001 From: Arnab Kumar Shil Date: Wed, 18 Oct 2023 07:27:25 +0200 Subject: [PATCH] Update docs/pages/custom-data.rst updated documentation based on feedback Co-authored-by: Jan Pieter Waagmeester --- docs/pages/custom-data.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/custom-data.rst b/docs/pages/custom-data.rst index a7012a5e..adf36c07 100644 --- a/docs/pages/custom-data.rst +++ b/docs/pages/custom-data.rst @@ -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']