Changes between Version 12 and Version 13 of IS_ONE_OF
- Timestamp:
- 02/09/12 19:24:15 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IS_ONE_OF
v12 v13 7 7 Unlike 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. 8 8 9 Furthermore, it is possible to filter the key records by a type field (which should be int)for certain options.9 Furthermore, it is possible to filter the key records by a type field for certain options. 10 10 11 11 Usage: … … 18 18 - list or tuple of field names, e.g. {{{('first_name', 'last_name')}}} 19 19 - function or lambda, e.g. {{{lambda r: "%(first_name)s %(last_name)s" % dict(r)}}} 20 - filterby=''"fieldname"'' = the type field (int)to filter for20 - filterby=''"fieldname"'' = the type field to filter for 21 21 - filter_opts=''"options"'' = a list or tuple of allowed values for the filterby-field 22 22