ok, i finally found what was wrong. i didn't realize there were two such
settings. i was using the profile_fields and testing it on the register
screen. so, i have this now under the db.py model:
auth.settings.register_fields = ['prefix_title', 'first_name', 'last_name',
'gender',
Definitely works for me. Are you using the built-in Auth profile
functionality? If so, you'll have to do some debugging -- check
/gluon/tools.py around line 3646 (where the profile form is created and
auth.settings.profile_fields is passed to SQLFORM.
Note, you can also create a custom form in
and i also update web2py from 2.17 to 2.18.5, just in case.
On Monday, April 8, 2019 at 10:20:27 AM UTC-4, lucas wrote:
>
> i tried this before and after auth.define_tables and it had no effect:
>
> auth.settings.profile_fields = ['prefix_title', 'first_name', 'last_name',
> 'gender',
i tried this before and after auth.define_tables and it had no effect:
auth.settings.profile_fields = ['prefix_title', 'first_name', 'last_name',
'gender', 'birthdate', 'zip', 'email']
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
auth.settings.profile_fields = ['prefix_title', 'first_name', 'last_name',
...]
Anthony
On Monday, April 8, 2019 at 9:38:06 AM UTC-4, lucas wrote:
>
> hello one and all,
>
> i'm using web2py 2.17>.
>
> what is the best method to change the field order on the view's
> user/profile and
5 matches
Mail list logo