From bd302b9ef71923ee67fe26c5e58f027e3f3f3d75 Mon Sep 17 00:00:00 2001 From: erjemin Date: Wed, 7 Oct 2026 23:07:16 +0300 Subject: [PATCH] =?UTF-8?q?minor:=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=81=D0=BF=D0=BE=D1=81=D0=BE=D0=B1=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B5=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=82=D1=8C=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lpon_site/frontend/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lpon_site/frontend/views.py b/lpon_site/frontend/views.py index 89adada..8d29dee 100644 --- a/lpon_site/frontend/views.py +++ b/lpon_site/frontend/views.py @@ -225,7 +225,7 @@ def hub_detail(request: HttpRequest, slug: str) -> HttpResponse: ).first() # Если статья не найдена — отдаём честный статус 404 - if article is None: + if not article: admin_hint = (f"Статья или хаб со слагом «{ slug }» отсутствует в базе данных." f" Создайте статью со слагом «{ slug }» (тип HUB)" " в админис­тративной панели.")