Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2005-08-25 13:54:49 +0000 (Thu, 25 Aug 2005)
New Revision: 944
Fixed a bug with inherited ForeignKeys.
--- trunk/SQLObject/sqlobject/inheritance/__init__.py 2005-08-25 08:26:12 UTC (rev 943)
+++ trunk/SQLObject/sqlobject/inheritance/__init__.py 2005-08-25 13:54:49 UTC (rev 944)
@@ -75,6 +75,7 @@
for col in soClass._parentClass.sqlmeta.columnList:
cname = col.name
if cname == 'childName': continue
+ if cname.endswith("ID"): cname = cname[:-2]
setattr(soClass, getterName(cname), eval(
'lambda self: self._parent.%s' % cname))
if not col.immutable:
Sign up for the SourceForge newsletter: