cdx_2016/gen-web-server/forums/forms.py

11 lines
327 B
Python
Raw Normal View History

2016-05-27 02:08:23 +00:00
from django import forms
class TopicCreateForm(forms.Form):
topic = forms.CharField(label="Topic", min_length=3)
message = forms.CharField(label="Message", min_length=3, widget=forms.Textarea())
class PostCreateForm(forms.Form):
message = forms.CharField(label="Message", min_length=3, widget=forms.Textarea())