|
|
@ -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)) |
|
|
|