Greetings.
I have a problem, I hope you can help me.
I have two models: Teacher, Student. Each with different attributes.
It occurred to me to implement them, linking tables:
db.define_table('teacher',
Field('person', length=64), requires=IS_IN_DB(db,
'auth_user.uuid')),
...
db.define_table('student',
Field('person', length=64), requires=IS_IN_DB(db,
'auth_user.uuid')),
...
Maybe not the best way to do it if they think of a better, please I'd like
to hear.
The problem is that I want to make a registration form to "Teacher." But
generating Auth, just fields "auth_user.
How do I include in a form fields auth_user + fields teacher?