How can add new fields in the existing table in PY4WEB?

47 views
Skip to first unread message

sandeep patel

unread,
Sep 21, 2019, 8:11:59 AM9/21/19
to web2py-users
Hello Massimo,

In web2py, We can add new fields in the existing table by auth.settings.extra_fields.
In Py4web. we can do the same?



Thanks
Sandeep

Massimo Di Pierro

unread,
Sep 21, 2019, 11:40:53 AM9/21/19
to web2py-users
Yes and not.

You can define your own auth_table before you call Auth()  but you would also need to modify the html and js logic that handle the ajax forms.
Maybe I will make this easier later.

You can also make another table that refences auth_user and create your own forms to handle it.

sandeep patel

unread,
Sep 22, 2019, 2:49:34 AM9/22/19
to web...@googlegroups.com
  Thank you for clarifying.  

--
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 web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/4f0eb569-2370-4241-bed6-3a92c700c01d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages