from django import newforms as forms class DynamicFieldSnippetForm(forms.Form): """DynamicFieldSnippetForm - declare a field dynamically in a form. The weight field is required. The height field is optional and not included on the form unless requested. >>> print DynamicFieldSnippetForm()