(request, content, email=None, report_notification=None)
return render(request, "reports/report_email.html", {
        'email_content': content,
        'unsub_link': unsub_link
    })
Renders full notification body with provided main content.
Renders full notification body with provided main content.
Renders full notification body with provided main content .
def render_full_report_notification(request, content, email=None, report_notification=None):
    """
    Renders full notification body with provided main content.
    """
    from dimagi.utils.web import get_url_base
    from django.http import HttpRequest

    if request is None:
        request = HttpRequest()

    unsub_link = None
    if report_notification and email:
        unsub_link = get_url_base() + reverse('notification_unsubscribe', kwargs={
            'scheduled_report_id': report_notification._id,
            'user_email': email,
            'scheduled_report_secret': report_notification.get_secret(email)
        })

    return render(request, "reports/report_email.html", {
        'email_content': content,
        'unsub_link': unsub_link
    })
def render_full_report_notification ( request , content , email = None , report_notification = None ) : from dimagi . utils . web import get_url_base from django . http import HttpRequest if request is None : request = HttpRequest ( ) unsub_link = None if report_notification and email : unsub_link = get_url_base ( ) + reverse ( 'notification_unsubscribe' , kwargs = { 'scheduled_report_id' : report_notification . _id , 'user_email' : email , 'scheduled_report_secret' : report_notification . get_secret ( email ) } ) return render ( request , "reports/report_email.html" , { 'email_content' : content , 'unsub_link' : unsub_link } )