In raw_id_fields =[ 'user', 'content'] the content should be course as the value(s) of raw_id_fields must be either a foreign key or many-to-many field.
Here is the traceback (with docker-compose.yml)
web_1 | ERRORS:
web_1 | <class 'chat.admin.MessageAdmin'>: (admin.E003) The value of 'raw_id_fields[1]' must be a foreign key or a many-to-many field.
Here is the screenshot from the book:![image](https://github.com/user-attachments/assets/1259f5cf-5457-4a99-8664-3763314d3655)
In
raw_id_fields =[ 'user', 'content']
thecontent
should becourse
as the value(s) ofraw_id_fields
must be either a foreign key or many-to-many field.Here is the traceback (with
docker-compose.yml
)