I understood that, i just thought there is some nicer way to do it :)

Thx.

On Wed, May 20, 2009 at 11:52 PM, Sam Chuparkoff <s...@sadach.org> wrote:

>
> On Wed, 2009-05-20 at 07:09 -0700, [CPR]-AL.exe wrote:
> > So, what is the best way to throw a ValidationError only if None of
> > values a entered in subclassed field?
>
> I don't know if you understood my post or read the code for
> MultiValueField. MultiValueField is designed to check for empty values
> and throw an exception if self.required == True. So you will have to
> override clean() to do what you want.
>
> sdc
>
>
>
> >
>


-- 
Sincerely yours, Alexey.

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

Reply via email to