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

Method clean

tests/forms_tests/tests/test_formsets.py:47–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45
46class ChoiceFormsetWithNonFormError(ChoiceFormSet):
47 def clean(self):
48 super().clean()
49 raise ValidationError("non-form error")
50
51
52class FavoriteDrinkForm(Form):

Callers

nothing calls this directly

Calls 2

ValidationErrorClass · 0.90
cleanMethod · 0.45

Tested by

no test coverage detected