required=True means that a value must be provided. For a string merk='' is
a value.
On Wednesday, 5 September 2012 12:27:05 UTC-5, mjm wrote:
>
> I have created simple table:
>
> db.define_table('hoortoestel',
> # algemeen
> Field('merk', type='string', required=True, ),
> Field('type', type='string', required=True, ),
> ...
>
> When trying to enter a new record in appadmin I noticed that when not
> entering anything in either field, the new record data is accepted and
> entered into the (SQLlite) database. I think that's a bug.
> If I change the required constraint to notnull=True, the empty record is
> indeed rejected, as expected.
>
>
>
--