open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
37 stars 26 forks source link

Temporary file uploads should not block the deletion of a submission #4763

Closed sergei-maertens closed 3 weeks ago

sergei-maertens commented 1 month ago

Product versie / Product version

2.8.0, possibly 2.7 too

Customer reference

Taiga DH 704

Omschrijf het probleem / Describe the bug

The TemporaryFileUpload records related to a submission block the removal of the submission via the admin interface.

image

Instead, I'd expect these to be cascade deleted along with the submission itself.

The DB model specifies on_delete=models.CASCADE - the model admin has ReadOnlyAdminMixin but maybe this is too much? It was done in 145c22d17457f5f34d45678bb6ab4082d782569c

Stappen om te reproduceren / Steps to reproduce

No response

Verwacht gedrag / Expected behavior

No response

Screen resolution

None

Device

None

OS

None

Browser

No response