From a5bb47dce4c58159701a4f71f44e42ab3e67789c Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Tue, 7 Feb 2012 11:29:56 -0600 Subject: [PATCH] fixed issue 649 --- VERSION | 2 +- gluon/dal.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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)