Browse Source

Fix if mail is missing

piernov 2 years ago
parent
commit
bd6d21d10a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jm2l/views.py

+ 1 - 1
jm2l/views.py

@@ -952,7 +952,7 @@ def participer(request):
952 952
         # Prepare Message
953 953
         message = Message(subject="[JM2L] Mon inscription au site web JM2L",
954 954
                           sender="contact@jm2l.linux-azur.org",
955
-                          recipients=[NewUser.mail],
955
+                          recipients=[NewUser.mail or TmpUsr.mail],
956 956
                           body=mail_plain, html=mail_html)
957 957
         
958 958
         message.add_bcc("spam@style-python.fr")