Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo on page 713 in chapter 16 #23

Open
HBarotov opened this issue Jul 17, 2024 · 1 comment
Open

Typo on page 713 in chapter 16 #23

HBarotov opened this issue Jul 17, 2024 · 1 comment

Comments

@HBarotov
Copy link

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.
@pawel-wu
Copy link

pawel-wu commented Oct 29, 2024

There's a typo in the last line of the markup: replace the content with course like:

raw_id_fields = ['user', 'course']

The code stored in GitHub contains correct value, so this is just a typo in the book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants