Hi Massimo,
Thank you for the prompt reply.
It wasn't an indentation problem.

I made a silly mistake.
I didn't realize auth.define_tables() was already called in earlier
parts of the default code for db.py!
Once again thank you & the community for developing something so
awesome.





On Feb 1, 1:23 am, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> What if you just do:
>
> auth=Auth(db)
> auth.settings.extra_fields['auth_user']= [Field('Skype')]
> auth.define_tables()
>
> On Jan 31, 9:55 am, Jarvert <jiahe...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am new to web2py and have been enjoying it immensely.
>
> > I have been trying to add extra fields to the db.auth_user. In
> > particular, I am trying to associate additional profile details
> > like a "avatar" and other stats to a user...postal code..and so on.
>
> > I have tried in the db.py:
>
> > auth=Auth(db)
> > auth.settings.extra_fields[auth.settings.table_user_name]=
> > [Field('Skype')]
> > auth.define_tables()
>
> > as perhttp://stackoverflow.com/questions/7121146/web2py-custom-user-profile
>
> > The extra fields does not seem to show up when i inspect it through
> > the appadmin under db.auth_user.
> > Am I doing this completely wrong?
>
> > Could someone please help, thank you!

Reply via email to