Exemplo n.º 1
0
def send_user_name_change_notification_email(licence):
    email = UserNameChangeNotificationEmail()

    url = 'http:' + hosts_reverse('applications:reissue_licence', args=(licence.pk,))

    context = {
        'licence': licence,
        'url': url
    }
    email.send(licence.issuer.email, context=context)
Exemplo n.º 2
0
def send_return_overdue_email_notification(ret):
    email = ReturnOverdueNotificationEmail()
    url = 'http:' + hosts_reverse('returns:enter_return', args=(ret.pk,))

    context = {
        'url': url,
        'return': ret
    }

    email.send(ret.licence.profile.email, context=context)
Exemplo n.º 3
0
def send_licence_renewal_email_notification(licence):
    email = LicenceRenewalNotificationEmail()
    url = 'http:' + hosts_reverse('applications:renew_licence', args=(licence.pk,))

    context = {
        'url': url,
        'licence': licence
    }

    email.send(licence.profile.email, context=context)