On Friday, June 17, 2011 10:20:49 AM UTC-4, Manuele wrote:
>
> ...
> auth.define_tables(username=True)
> auth.settings.extra_fields['auth_user'].append(
> Fields('company', db.company, required=True, notnull=True,
> requires=IS_IN_DB(db, 'company.id', '%(name)s'))
> )
> auth.define_tables() # creates all needed tables
>
You've got auth.define_tables twice -- once before and once after.
- [web2py] user table just minimal customization Manuele Pesenti
- [web2py] Re: user table just minimal customization Anthony
- Re: [web2py] Re: user table just minimal customiz... Manuele Pesenti
- Re: [web2py] Re: user table just minimal cust... Anthony
- Re: [web2py] Re: user table just minimal ... Manuele Pesenti

