I solved the problem by filtering only the fields that have changed in form. 
Before I was sending all fields for validation, which caused the inconvenience.

Thanks



Em terça-feira, 18 de agosto de 2015 05:57:10 UTC-3, K.J. Pamio escreveu:
>
> Hi, 
> I do not understand the functioning of validate_and_update . I'm doing 
> the following: 
>
> ret = db(db.auth_user.id==id_user).validate_and_update( 
>           first_name=first_name, last_name=last_name, 
>           username=user, password=psw, email=email) 
>
> And validation is returning the username and email already exist. 
> However, the unique username and email that exists in the database is 
> the same id informed in the query. I am using this function correctly? 
>
> best regards, 
> Kayro 
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to