Python __init__() missing 1 required positional argument: 'sortable_by'报错解决方案
作者:互联网
进入虚拟环境下的\Python\Python35\lib\site-packages\jet\utils.py
第223行
cl = ChangeList(request, model, list_display, list_display_links, list_filter, model_admin.date_hierarchy, search_fields,list_select_related, model_admin.list_per_page, model_admin.list_max_show_all, model_admin.list_editable,model_admin)
在后面新增 , model_admin.sortable_by
cl = ChangeList(request, model, list_display, list_display_links, list_filter, model_admin.date_hierarchy,search_fields,list_select_related, model_admin.list_per_page,model_admin.list_max_show_all, model_admin.list_editable,model_admin, model_admin.sortable_by)
标签:__,sortable,admin,list,报错,model,display 来源: https://blog.csdn.net/qq_29180565/article/details/101053220