Hello,
I have the following code in my models.py file

class Orders(models.Model):
    timestamp = models.DateField()
    ... etc

/////////////

I have the following in my view.py function

from datetime import datetime
o = Orders()
o.timestamp = datetime.now()
... etc
o.save()

////////////

However, when I view this order in the admin I get the following
error:

AttributeError at /admin/rugs/orders/13/
'unicode' object has no attribute 'strftime'

Does anybody know what's going on?

Thanks


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to