this way works

auth.settings.extra_fields['auth_user'] = [Field('Skype')]



Em 1 de agosto de 2011 10:46, António Ramos <[email protected]> escreveu:

> i tried but got this error
>
>
> File "gluon/restricted.py", line 192, in restricted
> File "D:/web2py10/web2py/applications/Vendas/models/db.py", line 55, in
> <module>
> KeyError: 'auth_user'
>
> the line 55 is
> *auth.settings.extra_fields['auth_user'].append(Field('Skype')) *
>
>
> 2011/7/30 pbreit <[email protected]>
>
>> auth.settings.extra_fields['auth_user'].append(Field('country'))
>
>
>

Reply via email to