diff --git a/import_export_celery/fields.py b/import_export_celery/fields.py index 53ad05e..371b2a9 100644 --- a/import_export_celery/fields.py +++ b/import_export_celery/fields.py @@ -6,7 +6,7 @@ class ImportExportFileField(models.FileField): def __init__(self, *args, **kwargs): # If the user has specified a custom storage backend, use it. - if settings.IMPORT_EXPORT_CELERY_STORAGE: + if getattr(settings, "IMPORT_EXPORT_CELERY_STORAGE", None): storage_class = get_storage_class(settings.IMPORT_EXPORT_CELERY_STORAGE) kwargs["storage"] = storage_class()