diff --git a/backend/right_tree/api/signals.py b/backend/right_tree/api/signals.py index 5b7bed4..4ea3fea 100644 --- a/backend/right_tree/api/signals.py +++ b/backend/right_tree/api/signals.py @@ -8,7 +8,7 @@ from .resource_generation_utils import storage @receiver(post_delete, sender=Export) -def delete_export(sender, instance, created, *args, **kwargs): +def delete_export(sender, instance, *args, **kwargs): """Clean up created files on the filesystem when an export is deleted""" rmtree(storage.path(f"export_{instance.pk}"))