django3.0.2集成xadmin list index out of range报错追踪和处理

input_html = [ht for ht in super(AdminSplitDateTime, self).render(name, value, attrs).replace(
'/><input', '/>\n<input').split('\n') if ht != '']

替换为:
input_html = [ht for ht in super(AdminSplitDateTime, self).render(name, value, attrs).replace(
'><input', '>\n<input').split('\n') if ht != '']

posted @ 2020-07-01 13:41  smallsunshine  阅读(102)  评论(0)    收藏  举报