It doesn’t work, mate, I’ve tried your advice when the error raised. I did do a simple query test successfully in terminal with django shell and here the coding snippet subsequently:
from reviews.models import Review, Book
book = Book.objects.get(pk=1)
reviews = book.review_set.all()
And It might prove that review_set is actually working instead of a single review..
They are different situations and usages. When you are referencing a reverse foreign key there are some cases where you use the _set specifier and some where you don’t. It’s not always one or the other.
Please post the actual models, query you are testing, and the full error message.
(And when you use the `, don’t escape them. The lines are three backticks, not escaped backticks. I corrected your post on that.)