I have figured it out, db.py already has this defined in line 137 & 138
auth.settings.extra_fields['auth_user'] = []
auth.define_tables(username=False, signature=False)
All i needed to do was add my fields* [Field('Telephone'),
Field('Cell_Number')] *in the* [ ]* empty square paranthesis and voila....
Regards;
Mostwanted
On Friday, June 28, 2019 at 10:31:40 AM UTC+2, mostwanted wrote:
>
> How can I add another field of my desire to the web2py auth_user
> registration form?
> In my registration form in addition to all the fields i want my clients to
> also register their telephone and cell phone numbers.
> I have tried to add this to the db.py file but they are not appearing!
> auth.settings.extra_fields['auth_user'] = [Field('Telephone'), Field(
> 'Cell_Number')]
> auth.define_tables()
>
> Am i doing something wrong??
>
> Regards;
>
> Mostwanted
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/e183143b-95fb-4cd3-bb35-5d2245042dd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.