Python formatting
This commit is contained in:
@ -336,11 +336,13 @@ class TagField(ManyToManyField):
|
|||||||
|
|
||||||
class ClearableFileInputWithWarning(ClearableFileInput):
|
class ClearableFileInputWithWarning(ClearableFileInput):
|
||||||
"""max file size warning"""
|
"""max file size warning"""
|
||||||
|
|
||||||
template_name = "widgets/clearable_file_input_with_warning.html"
|
template_name = "widgets/clearable_file_input_with_warning.html"
|
||||||
|
|
||||||
|
|
||||||
class CustomImageField(DjangoImageField):
|
class CustomImageField(DjangoImageField):
|
||||||
"""overwrites image field for form"""
|
"""overwrites image field for form"""
|
||||||
|
|
||||||
widget = ClearableFileInputWithWarning
|
widget = ClearableFileInputWithWarning
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user