galerie | popis nevyuzivame
This commit is contained in:
parent
1f64739ada
commit
eca5011a59
2 changed files with 2 additions and 2 deletions
|
@ -8,4 +8,4 @@ class KomentarForm(forms.Form):
|
||||||
|
|
||||||
class NewGalerieForm(forms.Form):
|
class NewGalerieForm(forms.Form):
|
||||||
nazev = forms.CharField(label = "Název galerie", max_length = 100)
|
nazev = forms.CharField(label = "Název galerie", max_length = 100)
|
||||||
popis = forms.CharField(label = "Popis", required = False, max_length = 2000, widget = forms.Textarea)
|
#popis = forms.CharField(label = "Popis", required = False, max_length = 2000, widget = forms.Textarea)
|
||||||
|
|
|
@ -171,7 +171,7 @@ def new_galerie(request, galerie, soustredeni):
|
||||||
# vytvoreni nove galerie
|
# vytvoreni nove galerie
|
||||||
gal = Galerie()
|
gal = Galerie()
|
||||||
gal.nazev = form.cleaned_data['nazev']
|
gal.nazev = form.cleaned_data['nazev']
|
||||||
gal.popis = form.cleaned_data['popis']
|
#gal.popis = form.cleaned_data['popis'] # popis nepouzivame
|
||||||
gal.zobrazit = 1 # galerie je v procesu vytvareni
|
gal.zobrazit = 1 # galerie je v procesu vytvareni
|
||||||
''' pokud je to podgalerie pridej nadrazenou galerii
|
''' pokud je to podgalerie pridej nadrazenou galerii
|
||||||
a nadrazene soustredeni nechej volne,
|
a nadrazene soustredeni nechej volne,
|
||||||
|
|
Loading…
Reference in a new issue