On Jan 15, 4:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
Hi all,

i'm using newforms and need to express that *if person_type STUDENT is
selected a Major must be selected*

The form posts and i get ValidationError raised but the form does not
re-display with the errors rendered, it just crashes with the standard
Django error

Replying to self after wasting over 12 hours hunting this down:

next time make sure that you remove the import left over since
oldforms:

from django.core.validators import ValidationError

since this would hide the ValidationError raised in the clean_fieldname
method

Lorenzo


--~--~---------~--~----~------------~-------~--~----~
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