From 7d4a0696e090cd30fda141b2481fff0eee41434d Mon Sep 17 00:00:00 2001 From: Michael Elsdoerfer Date: Fri, 13 Feb 2009 05:16:07 +0100 Subject: [PATCH] Clarified example in README. Thanks Aaron. --- README | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README b/README index 27fa6d8..4439918 100644 --- a/README +++ b/README @@ -222,9 +222,12 @@ property to the appropriate string. class CountryTable(tables.ModelTable): geo = tables.Column(data='city__geo') -Note that you don't need to define a relationship's fields as columns -simple to access them: +Note that you don't need to define a relationship's fields as separate +columns if you already have a column for the relationship itself, i.e.: + class CountryTable(tables.ModelTable): + city = tables.Column() + for country in countries.rows: print country.city.id print country.city.geo -- 2.26.2