On 3-9-2012 2:47, dalupus wrote:

>     datetime = models.DateTimeField(auto_now_add=True)
>     def __unicode__(self):
>         return unicode(self.datetime)

> On the item list screen however the datetime is not formated and seems
> to be in utc format

The list display uses the unicode representation by default. See here:
<https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display>

-- 
Melvyn Sopacua

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to