To clarify, by "checked" I mean there is a booleanfield and I only
want to let the user select 5 of those at a time across the inline
formset.



On Aug 12, 1:14 pm, kkerbel <[email protected]> wrote:
> I'm trying to do some custom validation for an inlineformset.  I would
> like to only allow 5 items checked across the forms in the inline
> formset.  What's the best way to do this?  I have tried defining a
> method (like a clean method for forms and formsets) but it doesn't
> appear to work.  Maybe I'm defining it the wrong way but I'm mainly
> asking who has done this and, in general, what is the best way to
> validate data in an inline formset.
>
> Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to