MCPcopy
hub / github.com/django/django / clean

Method clean

django/forms/fields.py:1043–1051  ·  view source on GitHub ↗

Validate the given value against all of self.fields, which is a list of Field instances.

(self, value)

Source from the content-addressed store, hash-verified

1041 self.fields = fields
1042
1043 def clean(self, value):
1044 """
1045 Validate the given value against all of self.fields, which is a
1046 list of Field instances.
1047 """
1048 super().clean(value)
1049 for field in self.fields:
1050 value = field.clean(value)
1051 return value
1052
1053
1054class MultiValueField(Field):

Callers 2

test_combofield_1Method · 0.95
test_combofield_2Method · 0.95

Calls 1

cleanMethod · 0.45

Tested by 2

test_combofield_1Method · 0.76
test_combofield_2Method · 0.76