fixed issue 1654, auth.enable_record_versioning(db), thanks hitkatojp

This commit is contained in:
mdipierro
2013-08-29 21:16:16 -05:00
parent ca0bbac685
commit 7c47619e2f
2 changed files with 5 additions and 3 deletions

View File

@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.08.29.18.56.54
Version 2.6.0-development+timestamp.2013.08.29.21.15.25

View File

@@ -1549,9 +1549,11 @@ class Auth(object):
does automatically.
"""
tables = [table for table in tables]
for table in tables:
if '_id' in table.fields() and 'modified_on' in table.fields() and not current_record in table.fields():
fieldnames = table.fields()
if ('id' in fieldnames and
'modified_on' in fieldnames and
not current_record in fieldnames):
table._enable_record_versioning(
archive_db=archive_db,
archive_name=archive_names,