From 843c00dd604f256cebe878d49288cf21cc33dd3a Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Thu, 4 Nov 2021 15:29:33 +0100 Subject: [PATCH] =?UTF-8?q?Galerie:=20None=20se=20porovn=C3=A1v=C3=A1=20p?= =?UTF-8?q?=C5=99es=20is,=20ne=20rovn=C3=ADtkem.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- galerie/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/galerie/views.py b/galerie/views.py index 4570b8fb..f0d9b53b 100644 --- a/galerie/views.py +++ b/galerie/views.py @@ -24,7 +24,7 @@ def zobrazit(galerie, request): def cesta_od_korene(g): """Vrátí seznam galerií od kořene ke g""" cesta = [] - while g != None: + while g is not None: cesta.append(g) g = g.galerie_up return reversed(cesta) @@ -53,7 +53,7 @@ def nahled(request, pk, soustredeni): for g in sourozenci: if g.pk == galerie.pk: predchozi = minuly - if minuly != None and minuly.pk == galerie.pk: + if minuly is not None and minuly.pk == galerie.pk: nasledujici = g break minuly = g