I should be able to use the queryset '_contains' on my Django object variables to filter my results, according to this documentation
But when I implement this code:
cookbooks = Books.objects.filter (category_contains = 'cooking')
I get the following error:
Cannot resolve keyword 'category_contains' into field. Choices are: category, adder, date etc.
Why is this happening? I also saw this StackOverflow question where someone explains that just using variable category
implies category_exact
. But if I write category_exact
I get a similar error.