fixed issue 649

This commit is contained in:
Massimo DiPierro
2012-02-07 11:29:56 -06:00
parent 82a8b7ec2d
commit a5bb47dce4
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2012-02-07 11:28:00) stable
Version 1.99.4 (2012-02-07 11:29:54) stable
+2 -1
View File
@@ -6383,7 +6383,8 @@ class Table(dict):
for field in table:
if not field.name in fieldnames and not field.type=='id':
field = copy.copy(field)
if field.type == 'reference '+table._tablename: # correct self references
# correct self references
if not table._actual and field.type == 'reference '+table._tablename:
field.type = 'reference '+self._tablename
newfields.append(field)
fieldnames.add(field.name)