On Mar 15, 3:13 pm, "Grupo Django" <[EMAIL PROTECTED]> wrote:
> Note: I can't use "form_for_model" because it doesn't validate the
> date fields all right.
Define validation methods for your date fields, e.g.:
def clean_fecha_inicio_publicacion(self):
dt = self.clean_data['fecha_inicio_publicacion']
if invalid_date(dt):
raise forms.ValidationError("Invalid date: %s" % dt)
return dt
Where invalid_date is your data validation function.
--
Jeff Bauer
Rubicon, Inc.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---