Hi,

I would like to customize the way ForeignKey are named in my database :

class Foo(SQLObject):
    pass

class Bar(SQLObject):
    fooId = ForeignKey("Foo")

if __name__ == "__main__":
    sqlhub.processConnection = connectionForURI("postgres://localhost/test")
    Foo.createTable()
    Bar.createTable()

With sqlobject 0.8.1, Bar.fooId becomes bar.foo_id_id (was bar.foo_id in 
0.7.3, which is what I want). How can I return to the old naming style  
? I tried to use a custom style class, but it does not seem to be 
involved in the ForeignKey name construction.

Thanks,
Luper Rouch


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to