diff --git a/filer/admin/fileadmin.py b/filer/admin/fileadmin.py index 48d06442b..517f57380 100644 --- a/filer/admin/fileadmin.py +++ b/filer/admin/fileadmin.py @@ -35,7 +35,8 @@ class Meta: def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.fields["file"].widget = forms.FileInput() + if "file" in self.fields: + self.fields["file"].widget = forms.FileInput() def clean(self): from ..validation import validate_upload