Altered tech_c mail fetch in views
authorLeonidas Poulopoulos <leopoul@noc.grnet.gr>
Fri, 10 Feb 2012 13:38:58 +0000 (15:38 +0200)
committerLeonidas Poulopoulos <leopoul@noc.grnet.gr>
Fri, 10 Feb 2012 13:38:58 +0000 (15:38 +0200)
flowspec/views.py

index 0d7d91c..e975e07 100644 (file)
@@ -355,9 +355,10 @@ def get_peer_techc_mails(user):
     techmails_list = []
     user_mail = "%s" %user.email
     user_mail = user_mail.split(';')
-    techmails = user.get_profile().peer.techc()
+    techmails = user.get_profile().peer.techc_emails.all()
     if techmails:
-        techmails_list = techmails.split(';')
+        for techmail in techmails:
+            techmails_list.append(techmail.email)
     if settings.NOTIFY_ADMIN_MAILS:
         additional_mail = settings.NOTIFY_ADMIN_MAILS
 #    mail.extend(user_mail)