Инфа о том, кто добавил книгу
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user