forms.py 579 B

12345678910111213141516
  1. from django.utils.translation import ugettext_lazy as _
  2. from django import forms
  3. from misago.forms import Form
  4. class ForumRoleForm(Form):
  5. name = forms.CharField(max_length=255)
  6. def finalize_form(self):
  7. self.layout = (
  8. (
  9. _("Basic Role Options"),
  10. (
  11. ('name', {'label': _("Role Name"), 'help_text': _("Role Name is used to identify this role in Admin Control Panel.")}),
  12. ),
  13. ),
  14. )