galerie | Korenova galerie nema poradi
This commit is contained in:
parent
ef5470bcb6
commit
bd01182b2e
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ def new_galerie(request, galerie, soustredeni):
|
|||
gal.galerie_up = galerie_up
|
||||
else:
|
||||
gal.soustredeni = soustredeni
|
||||
gal.poradi = int(len(gal.galerie_up.galerie_set.all())) + 1
|
||||
if gal.galerie_up:
|
||||
gal.poradi = int(len(gal.galerie_up.galerie_set.all())) + 1
|
||||
gal.save()
|
||||
|
||||
# zpracovani obrazku v galerii
|
||||
|
|
Loading…
Reference in a new issue