From eefa3bf268a9aa702197e9f98239cc9031e72b07 Mon Sep 17 00:00:00 2001
From: Arity-T
Date: Thu, 16 Jan 2025 19:02:15 +0300
Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BD=D1=84=D0=B0=20=D0=BE=20=D1=82?=
=?UTF-8?q?=D0=BE=D0=BC,=20=D0=BA=D1=82=D0=BE=20=D0=B4=D0=BE=D0=B1=D0=B0?=
=?UTF-8?q?=D0=B2=D0=B8=D0=BB=20=D0=BA=D0=BD=D0=B8=D0=B3=D1=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
bookify/books/templates/books/book_detail.html | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bookify/books/templates/books/book_detail.html b/bookify/books/templates/books/book_detail.html
index 636fecc..f9f4737 100644
--- a/bookify/books/templates/books/book_detail.html
+++ b/bookify/books/templates/books/book_detail.html
@@ -14,6 +14,14 @@
{% endfor %}
Средний рейтинг: {{ book.average_rating }}
+ Добавил:
+ {% if book.created_by %}
+ {{ book.created_by.username }}
+ {% else %}
+ Неизвестно
+ {% endif %}
+
+
{% if user.is_authenticated and user == book.created_by %}