Why not do
auth.settings.extra_field['auth_user']=[
Field('comment',type='text'),
Field('mail',type='boolean',default=False)
]
and just use
SQLFORM(db.auth_user)
On Aug 12, 2:42 am, annet <[email protected]> wrote:
> In a custom registration function I have the following form:
>
> form=SQLFORM.factory(db.auth_user,ignore_rw=True)
>
> for administrative reasons I want to extend the form with the
> following fields:
>
> Field('comment',type='text')
> Field('mail',type='boolean',default=False)
>
> The fields aren't stored in the auth_user table, when mail is True the
> register function will, after the registration process was successful
> redirect to a mail function in order for the administrator to reply to
> the comment.
>
> How do I extend the form this way.
>
> Kind regards,
>
> Annet.