From b362b72c57531d3d85e272f9892758e57a89edf2 Mon Sep 17 00:00:00 2001 From: Jason Kelly Date: Mon, 24 May 2021 09:35:21 +0800 Subject: [PATCH] Python linting --- bookwyrm/models/fields.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bookwyrm/models/fields.py b/bookwyrm/models/fields.py index d4d94aa24..caa22fcd3 100644 --- a/bookwyrm/models/fields.py +++ b/bookwyrm/models/fields.py @@ -334,7 +334,7 @@ class TagField(ManyToManyField): class ClearableFileInputWithWarning(ClearableFileInput): - template_name = 'widgets/clearable_file_input_with_warning.html' + template_name = "widgets/clearable_file_input_with_warning.html" class CustomImageField(ImageField): @@ -405,10 +405,12 @@ class ImageField(ActivitypubFieldMixin, models.ImageField): return [image_name, image_content] def formfield(self, **kwargs): - return super().formfield(**{ - 'form_class': CustomImageField, - **kwargs, - }) + return super().formfield( + **{ + "form_class": CustomImageField, + **kwargs, + } + ) class DateTimeField(ActivitypubFieldMixin, models.DateTimeField):