Hi all, I am trying to insert default value in "some_table" for new users:
# init/controllers/default.py
def __insert_default_val(form):
db.some_table.insert(val1=1, val2=2, created_by=form.vars.id)
auth.settings.register_onaccept = __insert_default_val
but I get the following exception:
"... sqlhtml.py", line 997, in accepts
fields[fieldname] = int(fields[fieldname])
ValueError: invalid literal for int() with base 10: ''
Any ideas for a possible fix?

