I am new to web2py. I added an extra field to default auth_user to select user type (student, lecturer ) from drop down. But how to modify the "auth_membership.group_id" of the user. Already I added these two roles in auth_group table. So after user submits registration his membership should be update. thanks in advance.
--