From 1722283a75b35b9baa1608efadfc46e1dc4bf114 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Mon, 9 Dec 2019 23:52:12 +0100 Subject: [PATCH] Galerie: Fix syntax --- galerie/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/galerie/views.py b/galerie/views.py index 11c01f33..916a869b 100644 --- a/galerie/views.py +++ b/galerie/views.py @@ -122,8 +122,8 @@ def detail(request, pk, fotka, soustredeni): else: predchozi_galerie = None if (poradi+1) == len(obrazky): # Tohle je poslední obrázek - if galerie.poradi is not None - and galerie.galerie_up is not None: + if (galerie.poradi is not None + and galerie.galerie_up is not None): nasledujici_galerie = Galerie.objects.\ filter(galerie_up=galerie.galerie_up).\ filter(poradi=(galerie.poradi+1))