Skip to content

Commit

Permalink
🔥 [#557] Remove local destruction report after uploading.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Dec 24, 2024
1 parent 4102aa0 commit 9aa2f52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/openarchiefbeheer/destruction/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def create_report_zaak(self) -> None:
def clear_local_metadata(self) -> None:
self.items.update(extra_zaak_data={})

self.destruction_report.delete()


class DestructionListItem(models.Model):
destruction_list = models.ForeignKey(
Expand Down

0 comments on commit 9aa2f52

Please sign in to comment.