From 86ede3862940d5c71dd5a42e6605189a47956a35 Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Tue, 23 Jan 2018 20:42:21 -0500 Subject: [PATCH] Fixed case law access request email --- main/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/views.py b/main/views.py index 88def91..e028588 100644 --- a/main/views.py +++ b/main/views.py @@ -55,7 +55,7 @@ def login(request): if request.POST.get('caselaw'): perm = Permission.objects.get(codename='change_user') admins = User.objects.filter(Q(groups__permissions=perm) | Q(user_permissions=perm) | Q(is_superuser=True)).distinct().values_list('email', flat=True) - mail.send_mail('OACPL Case Law Request', '{} {} ({}) has requested access to case law'.format(user.first_name, user.last_name, user.email), settings.EMAIL_HOST_USER, admins, html_message=render_to_string('email.html', {'content': '%(email)s has requested case law access.', 'base_url': settings.BASE_URL})) + mail.send_mail('OACPL Case Law Request', '{} {} ({}) has requested access to case law'.format(user.first_name, user.last_name, user.email), settings.EMAIL_HOST_USER, admins, html_message=render_to_string('email.html', {'content': '{} {} ({}) has requested access to case law'.format(user.first_name, user.last_name, user.email), 'base_url': settings.BASE_URL})) auth.login(request, user) return redirect('/') else: