diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /django/forms/forms.py | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff) | |
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'django/forms/forms.py')
| -rw-r--r-- | django/forms/forms.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py index d05bf4bb9e..760ba7b767 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -137,12 +137,12 @@ class BaseForm(RenderableFormMixin): """ Rearrange the fields according to field_order. - field_order is a list of field names specifying the order. Append fields - not included in the list in the default order for backward compatibility - with subclasses not overriding field_order. If field_order is None, - keep all fields in the order defined in the class. Ignore unknown - fields in field_order to allow disabling fields in form subclasses - without redefining ordering. + field_order is a list of field names specifying the order. Append + fields not included in the list in the default order for backward + compatibility with subclasses not overriding field_order. If + field_order is None, keep all fields in the order defined in the class. + Ignore unknown fields in field_order to allow disabling fields in form + subclasses without redefining ordering. """ if field_order is None: return @@ -367,10 +367,10 @@ class BaseForm(RenderableFormMixin): def clean(self): """ - Hook for doing any extra form-wide cleaning after Field.clean() has been - called on every field. Any ValidationError raised by this method will - not be associated with a particular field; it will have a special-case - association with the field named '__all__'. + Hook for doing any extra form-wide cleaning after Field.clean() has + been called on every field. Any ValidationError raised by this method + will not be associated with a particular field; it will have a + special-case association with the field named '__all__'. """ return self.cleaned_data |
