On Mon, May 23, 2011 at 7:35 AM, Daniel Holth <[email protected]> wrote:

> The only limitation I've found is that you have to use class attributes,
> not string table names, to reference foreign keys. e.g.
> ForeignKey(User.foobar) instead of ForeignKey('usertable.foobar_id')


I've never found a situation where I needed to use the actual class
attribute... all of my declarative foreign keys (and relations) use
strings.

-- 

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to