record versioning must ignore tables without _id field.
This commit is contained in:
1 parent
285811f852
commit
b632970960
1 file changed
+1
-1
+1
-1
@@ -1450,7 +1450,7 @@ class Auth(object):
|
|||||||
"""
|
"""
|
||||||
tables = [table for table in tables]
|
tables = [table for table in tables]
|
||||||
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(
|
table._enable_record_versioning(
|
||||||
archive_db=archive_db,
|
archive_db=archive_db,
|
||||||
archive_name=archive_names,
|
archive_name=archive_names,
|
||||||
|
|||||||
Reference in new issue
Block a user