Re: How to support of alternate date formats for DateField

2006-08-10 Thread DavidA
Steven Armstrong wrote: > On 08/10/06 20:25, DavidA wrote: > > Steven Armstrong wrote: > >> I've had similar problems and solved them like this: > >> > >> myproject/validators.py > >> %<-- > >> from django.utils.translation import gettext_lazy as _ > >> from django.cor

Re: How to support of alternate date formats for DateField

2006-08-10 Thread Steven Armstrong
On 08/10/06 20:25, DavidA wrote: > Steven Armstrong wrote: >> I've had similar problems and solved them like this: >> >> myproject/validators.py >> %<-- >> from django.utils.translation import gettext_lazy as _ >> from django.core.validators import * >> import re >> >>

Re: How to support of alternate date formats for DateField

2006-08-10 Thread DavidA
Steven Armstrong wrote: > I've had similar problems and solved them like this: > > myproject/validators.py > %<-- > from django.utils.translation import gettext_lazy as _ > from django.core.validators import * > import re > > my_ansi_date_re = re.compile('put regexp her

Re: How to support of alternate date formats for DateField

2006-08-09 Thread Steven Armstrong
On 08/09/06 22:15, DavidA wrote: > I'm sure I'm just misunderstanding how manipulators and validators > work, but I can't see the right way to do this: I want to support more > formats for a DateField then just '-MM-DD' (which is checked in > DateField by isValidANSIDate). > > It seems like I

How to support of alternate date formats for DateField

2006-08-09 Thread DavidA
I'm sure I'm just misunderstanding how manipulators and validators work, but I can't see the right way to do this: I want to support more formats for a DateField then just '-MM-DD' (which is checked in DateField by isValidANSIDate). It seems like I can add *more restrictive* validators but ca