From 9c19aff7c7561e3a82978a272ecdaad40dda5c00 Mon Sep 17 00:00:00 2001 From: django-bot Date: Thu, 3 Feb 2022 20:24:19 +0100 Subject: Refs #33476 -- Reformatted code with Black. --- tests/admin_views/forms.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tests/admin_views/forms.py') diff --git a/tests/admin_views/forms.py b/tests/admin_views/forms.py index b25e49246a..e9d9c0a8a5 100644 --- a/tests/admin_views/forms.py +++ b/tests/admin_views/forms.py @@ -4,17 +4,16 @@ from django.core.exceptions import ValidationError class CustomAdminAuthenticationForm(AdminAuthenticationForm): - class Media: - css = {'all': ('path/to/media.css',)} + css = {"all": ("path/to/media.css",)} def clean_username(self): - username = self.cleaned_data.get('username') - if username == 'customform': - raise ValidationError('custom form error') + username = self.cleaned_data.get("username") + if username == "customform": + raise ValidationError("custom form error") return username class MediaActionForm(ActionForm): class Media: - js = ['path/to/media.js'] + js = ["path/to/media.js"] -- cgit v1.3