# Controller
def phone_numbers_form():
user_id = None
if request.args(0) is not None:
try:
user_id = int(request.args(0))
except ValueError:
user_id = db(db.auth_user.username == request.args(0)).select(
db.auth_user.id).first().id
if user_id is
Hello.
This is just a simple example, my actual model is more complex, but I think
I can explain the main idea.
Model:
db.define_table('users',
Field('name', 'string'))
db.define_table('contacts',
Field('user', db.users),
Field('phone', 'string'
2 matches
Mail list logo