forms.Form.as_p()
  • References/Python/Django/API/Forms/The Forms API

Form.as_p() as_p() renders the form as a series of <p> tags, with each <p>

2025-01-10 15:47:30
Forms
  • References/Python/Django/API/Forms

Detailed form API reference. For introductory material, see the Working with forms topic guide.

2025-01-10 15:47:30
forms.ComboField.fields
  • References/Python/Django/API/Forms/Form fields

fields The list of fields that should be used to validate the field’s value (in the order in which they are provided).

2025-01-10 15:47:30
forms.Widget.format_value()
  • References/Python/Django/API/Forms/Widgets

format_value(value) Cleans and returns a value for use in the widget template. value isn’t guaranteed to be valid

2025-01-10 15:47:30
forms.TextInput
  • References/Python/Django/API/Forms/Widgets

class TextInput [source] Text input: <input type="text" ...>

2025-01-10 15:47:30
forms.DateField
  • References/Python/Django/API/Forms/Form fields

class DateField(**kwargs) [source] Default widget:

2025-01-10 15:47:30
forms.RegexField.regex
  • References/Python/Django/API/Forms/Form fields

regex A regular expression specified either as a string or a compiled regular expression object. Also

2025-01-10 15:47:30
forms.URLInput
  • References/Python/Django/API/Forms/Widgets

class URLInput [source] Text input: <input type="url" ...>

2025-01-10 15:47:30
forms.URLField
  • References/Python/Django/API/Forms/Form fields

class URLField(**kwargs) [source] Default widget:

2025-01-10 15:47:30
forms.ModelMultipleChoiceField
  • References/Python/Django/API/Forms/Form fields

class ModelMultipleChoiceField(**kwargs) [source] Default widget:

2025-01-10 15:47:30