diff options
Diffstat (limited to 'tests/generic_views/forms.py')
| -rw-r--r-- | tests/generic_views/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/generic_views/forms.py b/tests/generic_views/forms.py index 7d07dbc576..08bc07da8e 100644 --- a/tests/generic_views/forms.py +++ b/tests/generic_views/forms.py @@ -9,7 +9,7 @@ class AuthorForm(forms.ModelForm): class Meta: model = Author - fields = ['name', 'slug'] + fields = ["name", "slug"] class ContactForm(forms.Form): @@ -22,5 +22,5 @@ class ConfirmDeleteForm(forms.Form): def clean(self): cleaned_data = super().clean() - if 'confirm' not in cleaned_data: - raise forms.ValidationError('You must confirm the delete.') + if "confirm" not in cleaned_data: + raise forms.ValidationError("You must confirm the delete.") |
