From 02bd396c03362c2af2dae80ca140abb569bd823a Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Sat, 21 Jan 2012 16:59:44 -0600 Subject: [PATCH] another change to better support arbitrary named id fields --- VERSION | 2 +- gluon/validators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index cf5a969d..2adfbcf5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2012-01-20 11:36:35) stable +Version 1.99.4 (2012-01-21 16:59:06) stable diff --git a/gluon/validators.py b/gluon/validators.py index 36a34ccb..515cbce4 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -546,7 +546,7 @@ class IS_NOT_IN_DB(Validator): for f in self.record_id: if str(getattr(rows[0], f)) != str(self.record_id[f]): return (value, translate(self.error_message)) - elif str(rows[0].id) != str(self.record_id): + elif str(rows[0]._id) != str(self.record_id): return (value, translate(self.error_message)) return (value, None)