I had a similar problem in one of my models when I was trying to
display a date as a string (had joined a date and a string in a model
function).  From what I recall (not certain), unicode() on the date
fixed the problem.
 Michael

On Oct 12, 4:34 pm, Greg <[EMAIL PROTECTED]> wrote:
> Hello,
> I just added the following field to my Style class:
>
> newrugs = models.DateField(auto_now_add=True)
>
> Now, when I try to view my Style objects in the admin I get the
> following error:
>
> AttributeError at /admin/plush/style/5/
> 'unicode' object has no attribute 'strftime'
>
> ////////////////////
>
> Any suggestions on what's causing this?


--~--~---------~--~----~------------~-------~--~----~
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