__str__ возвращает нестроку (тип NoneType). В шаблоне /app/test/templates/test/init.html ошибка в строке 0

I get the following error: >str returned non-string (type NoneType) In template /app/test/templates/test/init.html, error at line 0

str returned non-string (type NoneType) The init.html template is a basic template The error occurs at the template rendering level. What can it be because of?

Tried

to debug, commented out all the places in the template where there could be None objects. For example for: book.author.name I checked if there was a book.author, etc. But it didn't help. I'm new to django, maybe I need more information?
Вернуться на верх