Re: ValidationError in a ModelForm with a DateTimeField in the Model

2009-01-13 Thread Cortland Klein
Got it. Should be models.DateTimeField(blank=True, null=True, default=None) I shouldn't use default = "" on a DateTimeField. On Jan 12, 9:29 pm, "Cortland Klein" wrote: > Update: It looks like it's a DateTimeField (lastsenttotranslation) that's > not included in the form, hence the form is_val

Re: ValidationError in a ModelForm with a DateTimeField in the Model

2009-01-12 Thread Cortland Klein
Update: It looks like it's a DateTimeField (lastsenttotranslation) that's not included in the form, hence the form is_valid() but the actual save() fails. But I'm still confused why... In models.py, its defined as: > lastsenttotranslation = models.DateTimeField(_("Last sent to Translation"), > bl

ValidationError in a ModelForm with a DateTimeField in the Model

2009-01-12 Thread Cortland Klein
Hi. I'm getting the following ValidationError in a ModelForm that's returning True for the form's is_valid() function but is throwing this ValidationError when the form's save() function is being called. Running save(commit=False).save() has no effect. This view is used to both create new V