Skip to content

Commit

Permalink
Store the date of email sent in tender.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
chloend committed Dec 24, 2024
1 parent 154670b commit 02f914b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lemarche/www/tenders/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,15 @@ def send_tender_author_modification_request(tender: Tender):
parent_content_object=tender,
)

# Log email sent date
tender.logs.append(
{
"action": "send_tender_author_modification_request",
"email_sent_at": timezone.now().isoformat(),
}
)
tender.save(update_fields=["logs"])


def send_tender_author_reject_message(tender: Tender):
"""
Expand Down

0 comments on commit 02f914b

Please sign in to comment.