Fix export deletion #94

Merged
mattn merged 1 commit from matt/delete-export-fix into main 2023-03-28 12:03:54 +13:00
Showing only changes of commit 96ba5f1906 - Show all commits

View file

@ -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}"))