From b6329709605f1a2796d45aad0b8543a96a57bdef Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Mon, 24 Jun 2013 00:52:15 +0200 Subject: [PATCH] record versioning must ignore tables without _id field. --- gluon/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index b8e9a360..57486531 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1450,7 +1450,7 @@ class Auth(object): """ tables = [table for table in tables] for table in tables: - if 'modified_on' in table.fields() and not current_record in table.fields(): + if '_id' in table.fields() and 'modified_on' in table.fields() and not current_record in table.fields(): table._enable_record_versioning( archive_db=archive_db, archive_name=archive_names,