The value of 'filter_horizontal[0]' must be a many-to-many field. The value of 'raw_id_fields[0]' mu...
1177 ワード
django adminを使用している間にこのエラーに遭遇しました
転載先:https://www.cnblogs.com/xuchunlin/p/6306064.html
<class 'Salesman.admin.UsrMngUserAdmin'>: (admin.E020) The value of 'filter_horizontal[0]' must be a many-to-many field.
The value of 'raw_id_fields[0]' must be a foreign key or a many-to-many field.
raw_id_fields = ('department',) # department ,
filter_horizontal = ('department',) # department ,
転載先:https://www.cnblogs.com/xuchunlin/p/6306064.html