Thanks Bruno
On Friday, February 24, 2012 11:36:08 AM UTC+5:30, rochacbruno wrote:
>
> def user():
> *if 'register' in request.args:
> fields_to_hide = ['city', 'preferred_color', 'soccer_team']
> for fieldname in fields_to_hide:
> field = db.auth_user[fieldname]
>
def user():
*if 'register' in request.args:
fields_to_hide = ['city', 'preferred_color', 'soccer_team']
for fieldname in fields_to_hide:
field = db.auth_user[fieldname]
field.readable = field.writable = False*
return dict(form=auth(
I am added the some extra fields in the auth_user table and i want to hide
those fields when the user will go for the registration user can only see
the following fields during the registration:
- First name
- Last name
- email-id
- Password
- verify password
3 matches
Mail list logo