You don't need default for a update form... and as I said you query was wrong... I have big doubt that your auth_user content is not what you think it is... You should look at what your DB contains...
Your form may not pass because the value you try to update already not unique too... which would make sens since default shouldn't change update form value... You need to use db.auth_user.field_name.update = 'something' to modify "default" values for update form... Richard On Thu, Mar 31, 2016 at 11:42 AM, 'Laer Cius' via web2py-users < [email protected]> wrote: > Well according to the blog that was the proper way to set the form with > default from the database but I maybe understood it wrong. > I ended up here cos I didn't find how to set up the default with a lambda > function. And so far, I always get a "lamba accpets 1 argument error > > Anyway despite I commented everything out, the form still shows errors > "value already in db" for values set with "unique". > > > > Thank you > > -- > 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. > -- 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.

