mamweb/galerie/forms.py

9 lines
352 B
Python
Raw Normal View History

from django import forms
class KomentarForm(forms.Form):
2019-05-11 01:15:05 +02:00
komentar = forms.CharField(label = "Komentář:", max_length = 300, required=False)
class NewGalerieForm(forms.Form):
2019-05-11 01:15:05 +02:00
nazev = forms.CharField(label = "Název galerie", max_length = 100)
#popis = forms.CharField(label = "Popis", required = False, max_length = 2000, widget = forms.Textarea)