Index: elixir/trunk/elixir/relationships.py
===================================================================
--- elixir/trunk/elixir/relationships.py (revision 307)
+++ elixir/trunk/elixir/relationships.py (revision 319)
@@ -572,5 +572,5 @@
 
                 # store the names of those columns
-                fk_colnames.append(colname)
+                fk_colnames.append(col.key)
 
                 # build the list of column "paths" the foreign key will 
