I think one is for forms, one is for the insert. From the book:
Notice that requires=... is enforced at the level of forms, required=True
is enforced at the level of the DAL (insert), while notnull, unique and
ondelete are enforced at the level of the database. While they sometimes
may seem
OK, except I have other apps where required=True works as expected, that
is, it causes a validation failure when the field is submitted empty.
These other apps are running on the same Web2py instance, so this is
puzzling.
On Tuesday, November 11, 2014 10:54:21 AM UTC-5, Willoughby wrote:
I
On Tuesday, November 11, 2014 10:59:19 AM UTC-5, Cliff Kachinske wrote:
OK, except I have other apps where required=True works as expected, that
is, it causes a validation failure when the field is submitted empty.
These other apps are running on the same Web2py instance, so this is
3 matches
Mail list logo