On Tuesday, October 25, 2011 8:34:16 AM UTC-4, Archibald Linx wrote: > > It works great ! > > Because a "list:reference" field gets a default constraint, I > deleted : > "IS_IN_SET(['Apples','Oranges','Bananas','Kiwis','Lemons'],multiple=True)" > I put no requirement. >
The default validator for list:reference should be IS_IN_DB, which you probably do want to keep to ensure the references are valid. > > How can I limit the size of a "list:reference" field ? I don't want > more than 8 people for example. > I think the 'multiple' argument to IS_IN_DB can be a list/tuple like (min, max), so maybe IS_IN_DB(..., (0,9)). Note, I think the max is exclusive, hence then 9 to ensure no more than 8. Anthony

