Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete attachments from storage when their submission are deleted #791

Merged
merged 5 commits into from
Feb 22, 2022

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Feb 18, 2022

Description

If a submission is deleted, the related attachments (if any) are deleted as well.

@noliveleger noliveleger changed the title Update attachments on submissions editing/deleting Delete attachments from storage submissions deletion Feb 22, 2022
@noliveleger noliveleger changed the title Delete attachments from storage submissions deletion Delete attachments from storage on submissions deletion Feb 22, 2022
onadata/apps/logger/__init__.py Outdated Show resolved Hide resolved
onadata/apps/logger/signals.py Outdated Show resolved Hide resolved
onadata/apps/logger/signals.py Outdated Show resolved Hide resolved
onadata/apps/logger/signals.py Outdated Show resolved Hide resolved
do not dare to change the name of the `instance` parameter of signal
handlers
@jnm jnm merged commit 295338f into beta Feb 22, 2022
@jnm jnm deleted the remove-attachments branch February 22, 2022 17:48
@jnm jnm changed the title Delete attachments from storage on submissions deletion Delete attachments from storage when their submission are deleted Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants