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