PacktPublishing / Django-5-By-Example

Django 5 By Example (5th Edition) published by Packt
https://djangobyexample.com/
MIT License
180 stars 81 forks source link

Typo on page 713 in chapter 16 #23

Open HBarotov opened 1 month ago

HBarotov commented 1 month ago

Here is the screenshot from the book: image

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.