mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
Python linting
This commit is contained in:
parent
7eb5f3b026
commit
b362b72c57
1 changed files with 7 additions and 5 deletions
|
@ -334,7 +334,7 @@ class TagField(ManyToManyField):
|
||||||
|
|
||||||
|
|
||||||
class ClearableFileInputWithWarning(ClearableFileInput):
|
class ClearableFileInputWithWarning(ClearableFileInput):
|
||||||
template_name = 'widgets/clearable_file_input_with_warning.html'
|
template_name = "widgets/clearable_file_input_with_warning.html"
|
||||||
|
|
||||||
|
|
||||||
class CustomImageField(ImageField):
|
class CustomImageField(ImageField):
|
||||||
|
@ -405,10 +405,12 @@ class ImageField(ActivitypubFieldMixin, models.ImageField):
|
||||||
return [image_name, image_content]
|
return [image_name, image_content]
|
||||||
|
|
||||||
def formfield(self, **kwargs):
|
def formfield(self, **kwargs):
|
||||||
return super().formfield(**{
|
return super().formfield(
|
||||||
'form_class': CustomImageField,
|
**{
|
||||||
**kwargs,
|
"form_class": CustomImageField,
|
||||||
})
|
**kwargs,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class DateTimeField(ActivitypubFieldMixin, models.DateTimeField):
|
class DateTimeField(ActivitypubFieldMixin, models.DateTimeField):
|
||||||
|
|
Loading…
Reference in a new issue