diff --git a/konova/management/commands/handle_resubmissions.py b/konova/management/commands/handle_resubmissions.py index 047dbd5c..65954a3a 100644 --- a/konova/management/commands/handle_resubmissions.py +++ b/konova/management/commands/handle_resubmissions.py @@ -39,6 +39,9 @@ class Command(BaseKonovaCommand): for obj in all_objs: obj.resubmit() self._write_success("Mails have been sent.") + resubmissions = Resubmission.objects.filter( + resubmission_sent=True, + ) resubmissions.delete() self._write_success("Resubmissions have been deleted.") except KeyboardInterrupt: