Thank you Anthony.

Do you mean "multiple=(0,9)" ? I cannot find this possibility in the
documentation.

How can I specify that the format of auth_user be auth_user.username ?

Thanks in advance,
Archibald


On 25 oct, 15:32, Anthony <abasta...@gmail.com> wrote:
> 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

Reply via email to