Merge pull request 'Fixes resubmission handling' (#258) from resubmission_fix into master

Reviewed-on: SGD-Nord/konova#258
This commit is contained in:
mpeltriaux 2022-12-01 14:01:08 +01:00
commit 33af4ddf2b

View File

@ -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: