The oreder is important because validators are filters.

requires=[A,B,C]

input -> A -> B -> C -> database
database -> ~C -> ~B ->~A -> output

You get a dropdown if there is a single validator that has an options
attribute.


On Nov 3, 2:52 pm, andrej burja <andrej.bu...@gmail.com> wrote:
> hi
>
> why is order of validators important?
> i have
>
> db.tecaj.voditelj.requires=IS_NOT_EMPTY()
> db.tecaj.voditelj.requires=IS_IN_DB(db,'person.id','%(name)s')
>
> why does putting the IS_NOT_EMPTY() at the end doesn't produce
> dropdown list?
> do i need the IS_NOT_EMPTY() if i have IS_IN_DB validator?
>
> andrej

Reply via email to