forms.py 499 B

1234567891011121314151617
  1. from django import forms
  2. from django.utils.translation import ugettext_lazy as _
  3. from misago.forms import Form
  4. class NewThreadForm(Form):
  5. thread_name = forms.CharField(max_length=255)
  6. post = forms.CharField(widget=forms.Textarea)
  7. layout = [
  8. [
  9. None,
  10. [
  11. ('thread_name', {'label': _("Thread Name")}),
  12. ('post', {'label': _("Post Content")}),
  13. ],
  14. ],
  15. ]