Customize auth_user table and registration?

27 views
Skip to first unread message

DOMGA KOMGUEM RODRIGUE

unread,
Dec 27, 2019, 4:36:44 AM12/27/19
to web...@googlegroups.com

Hello all,

I'm a newby in web2py. So sorry if my problem cans be considered as obvious.

I'm working now on a project. In this project, i define a table custumer which references the auth_user table in a One-To-One relation as follow.

db.define_table('custumer',
                Field('custumer_code', 'string'),
                Field('parent', 'reference custumer'),   
                Field('user_id', 'reference auth_user', label = 'Utilisateur : '),   
                Field('created_by', 'integer', writable=False, readable=False),
                Field('created_on', 'integer', writable=False, readable=False),
                Field('modified_by', 'integer', writable=False, readable=False),
                Field('modified_on', 'integer', writable=False, readable=False)
                )

How can i customize the registration form in order to insert row in the two tables (auth_user and custumer) using data from a single form.

Thank you in advance for your response.

DOMGA

Reply all
Reply to author
Forward
0 new messages