Galerie | opraven bug pri pridavani galerie
This commit is contained in:
parent
2242659f9b
commit
29687b01b5
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ def obrazek_filename(self, filename):
|
|||
# soustředění je v cestě jen pokud galerie pod nějaké patří
|
||||
cesta = (
|
||||
['Galerie'] +
|
||||
(["soustredeni_" + gal.soustredeni.pk] if gal.soustredeni else []) +
|
||||
["galerie_" + cislo_gal, self.nazev]
|
||||
(["soustredeni_{}".format(gal.soustredeni.pk)] if gal.soustredeni else []) +
|
||||
["galerie_{}".format(cislo_gal), self.nazev]
|
||||
)
|
||||
|
||||
return os.path.join(*cesta)
|
||||
|
|
Loading…
Reference in a new issue