Note, the reason you don't get a nice error reported on the page is that you didn't add requires=IS_NOT_EMPTY(). Instead, you have only set required=True (which is enforced by the DAL) and notnull=True (which is enforced by the database, though irrelevant in this case because you have specified a default value that will get submitted to the database). Whenever you set required or notnull, you should also include a validator so the form will catch any errors and report them to the user rather than have an exception raised.
Anthony On Friday, November 13, 2015 at 10:02:55 AM UTC-5, Alexandru Asimionese wrote: > > Allready fixed, it's required and validator expects a value in "lang" > field from at form submit, and i'm using custom form, and didn't include it. > I created field mannualy beacause migration when you have a mysql database > in most cases fails, especially auth_user table. > Anyway thanks :) > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.