diff --git a/lemarche/tenders/management/commands/update_tender_status_to_rejected.py b/lemarche/tenders/management/commands/update_tender_status_to_rejected.py index 1ce441bfd..5a77e261b 100644 --- a/lemarche/tenders/management/commands/update_tender_status_to_rejected.py +++ b/lemarche/tenders/management/commands/update_tender_status_to_rejected.py @@ -5,6 +5,7 @@ from lemarche.tenders import constants as tender_constants from lemarche.tenders.models import Tender +from lemarche.www.tenders.tasks import send_tender_author_reject_message class Command(BaseCommand): @@ -33,6 +34,7 @@ def handle(self, *args, **options): for tender in tenders_to_update: tender.set_rejected() + send_tender_author_reject_message(tender=tender) if not tenders_to_update: self.stdout.write("Aucun besoin rejeté")