Well now that is embarrassing. Thanks! For reference, this was my recipe to put at the top of a file that is going to populate multiple tables:
if db(db.auth_user).count() == 0: #Bulk load account admin_user_id = db.auth_user.insert(first_name='Bulk uploader') else: admin_user_id = db(db.auth_user.first_name == 'Bulk uploader').select(). first().id for table in ['table','names']: table_object = db[table] table_object.created_by.default = admin_user_id table_object.modified_by.default = admin_user_id On Friday, 24 July 2020 12:46:12 UTC+1, villas wrote: > > Did you try... > > db.locations.created_by.default = 1 # or > whateverdb.locations.modified_by.update = 1 > prior to: import_from_csv_file > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/c7a44eb0-d464-4c46-a8de-51f8b72fa4d0o%40googlegroups.com.