class CountryTable(tables.ModelTable):\r
geo = tables.Column(data='city__geo')\r
\r
-Note that you don't need to define a relationship's fields as columns\r
-simple to access them:\r
+Note that you don't need to define a relationship's fields as separate \r
+columns if you already have a column for the relationship itself, i.e.:\r
\r
+ class CountryTable(tables.ModelTable):\r
+ city = tables.Column()\r
+ \r
for country in countries.rows:\r
print country.city.id\r
print country.city.geo\r