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
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/ac40b9f7-a252-a208-06eb-71aee04784c6%40gmail.com.