Changes between Version 12 and Version 13 of IS_ONE_OF


Ignore:
Timestamp:
02/09/12 19:24:15 (13 years ago)
Author:
Fran Boon
Comment:

no longer limited to int

Legend:

Unmodified
Added
Removed
Modified
  • IS_ONE_OF

    v12 v13  
    77Unlike IS_IN_DB, the '''IS_ONE_OF''' validator is deletion status sensitive, i.e. records in the key table that are flagged as 'deleted' will be ignored.
    88
    9 Furthermore, it is possible to filter the key records by a type field (which should be int) for certain options.
     9Furthermore, it is possible to filter the key records by a type field for certain options.
    1010
    1111Usage:
     
    1818    - list or tuple of field names, e.g. {{{('first_name', 'last_name')}}}
    1919    - function or lambda, e.g. {{{lambda r: "%(first_name)s %(last_name)s" % dict(r)}}}
    20   - filterby=''"fieldname"'' = the type field (int) to filter for
     20  - filterby=''"fieldname"'' = the type field to filter for
    2121  - filter_opts=''"options"'' = a list or tuple of allowed values for the filterby-field
    2222