From: Michael Elsdoerfer Date: Fri, 13 Feb 2009 04:16:07 +0000 (+0100) Subject: Clarified example in README. Thanks Aaron. X-Git-Tag: 0.2~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7d4a0696e090cd30fda141b2481fff0eee41434d;p=django-tables2.git Clarified example in README. Thanks Aaron. --- 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