On Friday, March 31, 2017 at 5:41:49 PM UTC-4, Joe Barnhart wrote: > > Anthony -- > > One more tiny but not insignificant detail... > > I found I had to add "requires=[]" to the custom.widget: > > [form.custom.widget[f.name].update(_readonly=True, requires=[]) for f > in readonly_fields] > > Otherwise, the field keeps the 'requires' of the original Field and the > check fails. The above solution is working very well! >
Hmm, I didn't have that problem. Do you have an example model that exhibited that behavior? Anthony -- 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.