>      def clean_date_of_birth(self):
>          date_of_birth = self.cleaned_data.get('date_of_birth')
>          if date_of_birth:
>              if date_of_birth.year < 1890:
>                  raise forms.ValidationError(u"It is very improbable...")
>          return date_of_birth
>
I had already tried this. It will produce a database error: According
to the postgresql server date_of_birth must not be null:

FEHLER:  NULL-Wert in Spalte »date_of_birth« verletzt Not-Null-
Constraint

(Unfortunately, our postgresql server produces German error messages
and our system administrator will  not change this. I don't know the
exact wording of this error message in English.)



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