auth.enable_record_versioning(...db=...)
This commit is contained in:
1 parent
f104bf1d9c
commit
6e9df7cf18
2 files changed
+3
-3
No files matched your search
@@ -1 +1 @@
|
||||
Version 1.99.7 (2012-04-05 18:08:16) dev
|
||||
Version 1.99.7 (2012-04-05 18:09:31) dev
|
||||
+2
-2
@@ -1259,7 +1259,7 @@ class Auth(object):
|
||||
|
||||
def enable_record_versioning(self,
|
||||
tables,
|
||||
db = None,
|
||||
archive_db = None,
|
||||
archive_names='%s_archive',
|
||||
current_record='current_record'):
|
||||
"""
|
||||
@@ -1297,7 +1297,7 @@ class Auth(object):
|
||||
fields[current_record] = row.id
|
||||
archive_table.insert(**fields)
|
||||
|
||||
archive_db = db or self.db
|
||||
archive_db = archive_db or self.db
|
||||
tables = [table for table in tables]
|
||||
for table in tables:
|
||||
fieldnames = table.fields()
|
||||
|
||||
Reference in new issue
Block a user