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:
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
)