def admin_request_announcement_email(request, form, obj):
    """Send an admin announcement request email.

    form: The announcement request form
    obj: The announcement request object

    """

    subject = "News Post Approval Needed ({})".format(obj.title)
    emails = [settings.APPROVAL_EMAIL]
    base_url = request.build_absolute_uri(reverse('index'))
    data = {
        "req": obj,
        "formdata": form.data,
        "info_link": request.build_absolute_uri(reverse("admin_approve_announcement", args=[obj.id])),
        "base_url": base_url
    }
    email_send("announcements/emails/admin_approve.txt", "announcements/emails/admin_approve.html", data, subject, emails)
def admin_request_announcement_email ( request , form , obj ) : subject = "News Post Approval Needed ({})" . format ( obj . title ) emails = [ settings . APPROVAL_EMAIL ] base_url = request . build_absolute_uri ( reverse ( 'index' ) ) data = { "req" : obj , "formdata" : form . data , "info_link" : request . build_absolute_uri ( reverse ( "admin_approve_announcement" , args = [ obj . id ] ) ) , "base_url" : base_url } email_send ( "announcements/emails/admin_approve.txt" , "announcements/emails/admin_approve.html" , data , subject , emails )
Send an admin announcement request email.

    form: The announcement request form
    obj: The announcement request object