Инфа о том, кто добавил книгу

This commit is contained in:
2025-01-16 19:02:15 +03:00
parent 08c72855ef
commit eefa3bf268

View File

@@ -14,6 +14,14 @@
{% endfor %} {% endfor %}
</p> </p>
<p><strong>Средний рейтинг:</strong> {{ book.average_rating }}</p> <p><strong>Средний рейтинг:</strong> {{ book.average_rating }}</p>
<p><strong>Добавил:</strong>
{% if book.created_by %}
{{ book.created_by.username }}
{% else %}
Неизвестно
{% endif %}
</p>
{% if user.is_authenticated and user == book.created_by %} {% if user.is_authenticated and user == book.created_by %}
<p> <p>