Browse Source

galerie | popis nevyuzivame

remotes/origin/imagekit
Bc. Petr Pecha 9 years ago
parent
commit
eca5011a59
  1. 2
      galerie/forms.py
  2. 2
      galerie/views.py

2
galerie/forms.py

@ -8,4 +8,4 @@ class KomentarForm(forms.Form):
class NewGalerieForm(forms.Form):
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)

2
galerie/views.py

@ -171,7 +171,7 @@ def new_galerie(request, galerie, soustredeni):
# vytvoreni nove galerie
gal = Galerie()
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
''' pokud je to podgalerie pridej nadrazenou galerii
a nadrazene soustredeni nechej volne,

Loading…
Cancel
Save