diff --git a/VERSION b/VERSION index 30eba893..407a25af 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2012.12.25.20.31.41 +Version 2.4.1-alpha.2+timestamp.2012.12.25.21.01.19 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 9fc69e22..a5827e96 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -2429,7 +2429,7 @@ class SQLFORM(FORM): cond = constraints.get(referee, None) if cond: record = db( - db[referee].id == id)(cond).select().first() + db[referee]._id == id)(cond).select().first() else: record = db[referee](id) if previous_id: @@ -2469,7 +2469,7 @@ class SQLFORM(FORM): except (KeyError, ValueError, TypeError): redirect(URL(args=table._tablename)) if nargs == len(args) + 1: - query = table.id > 0 + query = table._id > 0 # filter out data info for displayed table if table._tablename in constraints: