diff --git a/VERSION b/VERSION index 48b5b6b9..73d724cf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-02-07 11:28:00) stable +Version 1.99.4 (2012-02-07 11:29:54) stable diff --git a/gluon/dal.py b/gluon/dal.py index 4b6713b0..4cedaa6e 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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)