forms.MultipleHiddenInput.choices
  • References/Python/Django/API/Forms/Widgets

choices This attribute is optional when the form field does not have a choices attribute. If it does, it will override

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

min_value These control the range of values permitted in the field.

2025-01-10 15:47:30
forms.models.modelform_factory()
  • References/Python/Django/API/Forms/Model Form Functions

modelform_factory(model, form=ModelForm, fields=None, exclude=None, formfield_callback=None, widgets=None, localized_fields=None, labels=None, help_texts=None, error_messages=None

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

id_for_label(self, id_) [source] Returns the HTML ID attribute of this widget for use by

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.ModelMultipleChoiceField
  • References/Python/Django/API/Forms/Form fields

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

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

empty_label By default the <select> widget used by ModelChoiceField will have an empty choice

2025-01-10 15:47:30
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.BoundField.as_hidden()
  • References/Python/Django/API/Forms/The Forms API

BoundField.as_hidden(attrs=None, **kwargs) [source] Returns a string of HTML for representing

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