From: Mike Bayer Date: Thu, 8 Sep 2005 04:37:31 +0000 (+0000) Subject: much uncertainty with dependency sorting there is ! X-Git-Tag: rel_0_1_0~764 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e53b53c6b0aa5f6e4a2f8abba5890421409c1381;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git much uncertainty with dependency sorting there is ! --- diff --git a/test/mapper.py b/test/mapper.py index 0a7246a96c..78a22fad76 100644 --- a/test/mapper.py +++ b/test/mapper.py @@ -372,7 +372,7 @@ class SaveTest(AssertMixin): def testbackwardsonetoone(self): # test 'backwards' m = mapper(Address, addresses, properties = dict( - user = relation(User, users, primaryjoin = users.c.user_id == addresses.c.user_id, lazy = True, uselist = False) + user = relation(User, users, foreignkey = addresses.c.user_id, primaryjoin = users.c.user_id == addresses.c.user_id, lazy = True, uselist = False) )) a = Address() a.email_address = 'themaster@foo.com'