I figured that I need two validators IS_NULL_OR(IS_IN_DB())
However I find it is a glitch, I will have a look in the source. I
think if a field has notnull set to false it should accept null no
matter what type it is...

On 5 Cze, 00:53, Marek Mollin <rog...@gmail.com> wrote:
> Hello,
> I ran into small problem. When I define model:
>
> db.define_table('child',
>   Field('parent', 'reference parent', notnull=False),
>   )
>
> The problem is that validation serves me an error eventhough no
> validators are attachted to parent and I explicitly provided
> notnull=False.
> It shouldnt check in database unless I express so in the validator
> this way it cannot realize the scenario to have parent or null ;]
>
> Regards,
> Marek

Reply via email to