On Oct 18, 2006, at 5:29 AM, Lucas Vogelsang wrote: > ...[snip]... > "/usr/lib/python2.4/site-packages/django/db/models/fields/__init__.py" > in get_db_prep_save > 446. value = value.strftime('%Y-%m-%d') > > AttributeError at /addressbook/new/ > 'str' object has no attribute 'strftime'
How about your model? I'll bet you have a DateTimeField that has a default like '0000-00-00 00:00:00'? Your DateTimeFields cannot have string defaults, they must be datetime objects. Don --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---