[web2py] Re: Extend default user/group model
Ok, I will try... Thanks you both for your support!!! On 25 Lug, 22:35, pbreit pbreitenb...@gmail.com wrote: Also, extra_fields was recently added: - auth.settings.extra_fields['auth_user'].append(Field('country')) allows to extend auth_* tables without need of definiting a custom auth_* table. Must be placed before auth.define_tables()
[web2py] Re: Extend default user/group model
See http://web2py.com/book/default/chapter/08#Customizing-Auth. Make sure you define your custom tables after you instantiate Auth, but before you call auth.define_tables(). Anthony On Monday, July 25, 2011 7:23:05 AM UTC-4, Simone Fiorenzoni wrote: Hi to all, when I create a new application, the user/group db model is created automatically. How can I extend it? Should I redefine it? I would like to add some fields and some foreign keys to users or group. Thanks to all! (... and sorry for my english)
[web2py] Re: Extend default user/group model
Also, extra_fields was recently added: - auth.settings.extra_fields['auth_user'].append(Field('country')) allows to extend auth_* tables without need of definiting a custom auth_* table. Must be placed before auth.define_tables()