在ModelAdmin中尝试以下操作:
def time_seconds(self, obj): return obj.timefield.strftime("%d %b %Y %H:%M:%S")time_seconds.admin_order_field = 'timefield'time_seconds.short_description = 'Precise Time'list_display = ('id', 'time_seconds', )当然,用模型中的适当字段替换“ timefield”,并在“ list_display”中添加任何其他需要的字段。



