Clarified example in README. Thanks Aaron.
authorMichael Elsdoerfer <michael@elsdoerfer.info>
Fri, 13 Feb 2009 04:16:07 +0000 (05:16 +0100)
committerMichael Elsdoerfer <michael@elsdoerfer.info>
Fri, 13 Feb 2009 04:16:07 +0000 (05:16 +0100)
README

diff --git a/README b/README
index 27fa6d897f2a88a57892a55e13d57c6e9a7de8e5..4439918b7367f6b30c5c5b087da86fa61576f80c 100644 (file)
--- a/README
+++ b/README
@@ -222,9 +222,12 @@ property to the appropriate string.
     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