[Fixed]-"prefetch_related" working on only side of One-Many relationship 13 December 2023 by thecoderscamp.com 1👍 It seems this error is only present in the django shell. This works fine in the django app itself 👤Sudhir Shrestha Django TemplateSyntaxError Source:stackexchange.com