IS_NOT_EMPTY() is more "remembereable" . @Marin: when you reply from your mail client please strip the re: from the subject or in the group it will show as a separate thread.
On Wednesday, September 5, 2012 10:07:11 PM UTC+2, Marin Pranjić wrote: > > This should work for other field types as you expect, but empty string is > still valid string value. > You can set: requires=IS_LENGTH(minsize=1) to disallow empty strings. > > On Tue, Sep 4, 2012 at 7:24 PM, Denis Rykov <[email protected]<javascript:> > > wrote: > >> I use the following Field definition: >> >> Field('admin_unit', required=True, label='Region'), >> >> But when I create new row through smartgrid interface and leave this >> field empty - validation error not appears and record creates in database. >> If see table in database you can see that 'admin_unit' field contains empty >> string (''). Is it correct? It looks like required options doesn't work >> properly. >> >> -- >> >> >> >> > > --

