Galerie: Fix syntax
This commit is contained in:
parent
ac56fd0563
commit
1722283a75
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue