class TestForm(forms.Form): string = forms.String(label='Label', help_text='Help', default='default', read_only=True) number = forms.Integer()
class TestForm(forms.ModelForm): value = forms.String(required=False) class Meta: model = self.TestModel fields = ('value', )
class SettingsForm(forms.Form): secret_key = forms.String() debug = forms.Boolean() urls = forms.String() databases = forms.Array(field=forms.Map( schema={ 'alias': forms.String(default='default'), 'uri': forms.String(), 'name': forms.String(), 'options': forms.Map(default={}) })) tornado_application_settings = forms.Map(default={}) nosetests_arguments = forms.Array(field=forms.String(), default=[]) models = forms.Array(field=forms.String(), default=[]) commands = forms.Map(default={})
class TestForm(forms.Form): value = forms.String()
class UserForm(forms.ModelForm): value = forms.String() class Meta: model = User