On 5/5/06, Petar Mariæ <[EMAIL PROTECTED]> wrote:
> class Paper(models.Model):
>     # ...
>     submited_on = models.DateField(
>         auto_now_add=True,
>     )
>     # ...
>
> The above will spit out:
> Exception Type:         ValueError
> Exception Value:        year is out of range
> Exception Location:
>         C:\Dev\Python24\lib\site-packages\MySQLdb\connections.py in
> defaulterrorhandler, line 33
>
> The saved value of submited_on for the corresponding Paper is
> '0000-00-00' which is horribly wrong ;)
>
> I'm using MySQL 4.1.12a-nt and freshly baked django svn copy

Try the patch on this bug:

http://code.djangoproject.com/ticket/1584
--
The Pythonic Principle: Python works the way it does
because if it didn't, it wouldn't be Python.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to