fix Enviar copia al email del vicerrectorado en vez de a los gestores individuales

parent 70046452
Pipeline #603 failed with stage
in 0 seconds
......@@ -662,8 +662,8 @@ class ProyectosNotificarView(LoginRequiredMixin, PermissionRequiredMixin, Redire
def _enviar_notificaciones(self, proyecto, plantilla):
emails_coordinadores = [c.email for c in proyecto.get_coordinadores()]
gestores = Group.objects.get(name='Gestores').user_set.all()
emails_gestores = [gestor.email for gestor in gestores]
# gestores = Group.objects.get(name='Gestores').user_set.all()
# emails_gestores = [gestor.email for gestor in gestores]
send_templated_mail(
template_name=plantilla,
from_email=None, # settings.DEFAULT_FROM_EMAIL
......@@ -675,7 +675,7 @@ class ProyectosNotificarView(LoginRequiredMixin, PermissionRequiredMixin, Redire
'site_url': settings.SITE_URL,
'vicerrector': settings.VICERRECTOR,
},
cc=emails_gestores,
cc=(settings.DEFAULT_FROM_EMAIL,),
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment