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,