1st question) I am trying to change the way some of DateTimeField are
displayed in the change_list page of the admin site (django 1.2 svn):
how to do it?
Not knowing which method to define or override in the ModelAdmin
class, I opted for a different solution:
I added a string in the list_display tuple and then I defined a
homonimous method:
list_display = ('x',)
def x(self, row):
....return mark_safe(row.call_start.strftime(u'%Y-%m-%d<br/>%H:%M:%S'))
2nd question) why the "<>" signs in the strings are escaped in the
change_list page even though they are marked safe?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.