Commit 09112178 authored by John Red Medrano's avatar John Red Medrano

Merge pull request #641 in RMS/api-main-service from red-develop to product-dev

* commit '25ef8fef':
  fixing email
parents 4005b6f7 25ef8fef
...@@ -89,6 +89,8 @@ class CMSSettingsViewSet(viewsets.ModelViewSet): ...@@ -89,6 +89,8 @@ class CMSSettingsViewSet(viewsets.ModelViewSet):
code=str(data['behalf_user']) code=str(data['behalf_user'])
) )
print(recipient)
args = [recipient.name, action, active_user, recipient.email, admin] args = [recipient.name, action, active_user, recipient.email, admin]
main_threading(args, sender.on_behalf) main_threading(args, sender.on_behalf)
......
...@@ -609,6 +609,10 @@ def on_behalf(args): ...@@ -609,6 +609,10 @@ def on_behalf(args):
F = open(os.path.join(settings.EMAIL_TEMPLATES_ROOT, 'RMS-ONBEHALF.html'), 'r') F = open(os.path.join(settings.EMAIL_TEMPLATES_ROOT, 'RMS-ONBEHALF.html'), 'r')
print("wwww")
print(args)
FC = F.read() FC = F.read()
FC = FC.replace('{name}', name) FC = FC.replace('{name}', name)
......
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