Skip to content

Commit

Permalink
fix reflect changed method name
Browse files Browse the repository at this point in the history
  • Loading branch information
salty-ivy committed Dec 3, 2024
1 parent 61abb33 commit 54ff8d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/djangoindia/db/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.template.response import TemplateResponse
from django.urls import path

from djangoindia.bg_tasks.event_registration import send_mass_email_task
from djangoindia.bg_tasks.event_registration import send_mass_mail_task
from djangoindia.db.models.communication import ContactUs, Subscriber
from djangoindia.db.models.event import Event, EventRegistration
from djangoindia.db.models.partner_and_sponsor import (
Expand Down Expand Up @@ -124,7 +124,7 @@ def send_email_view(self, request):
recipient_email = registration.email
emails.append((subject, message, from_email, [recipient_email]))

send_mass_email_task(emails, fail_silently=False)
send_mass_mail_task(emails, fail_silently=False)
messages.success(
request, f"{len(emails)} emails sent successfully."
)
Expand Down

0 comments on commit 54ff8d4

Please sign in to comment.