From 96ba5f1906e5d0ebda2fef6884704545642518f4 Mon Sep 17 00:00:00 2001 From: Matthew Northcott Date: Tue, 28 Mar 2023 12:03:13 +1300 Subject: [PATCH] Fix export deletion --- backend/right_tree/api/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")) -- 2.45.2