Python3 Support

This commit is contained in:
Mohamed ElKalioby
2019-01-23 10:42:50 +03:00
parent b199c86993
commit 6efd643022
11 changed files with 27 additions and 23 deletions

View File

@@ -105,8 +105,8 @@ def start(request):
def send_email(request):
body=render(request,"TrustedDevices/email.html",{}).content
from Registry_app.Common import send
if send(request.user.email,"Add Trusted Device Link",body,delay=False):
from .Common import send
if send([request.user.email],"Add Trusted Device Link",body):
res="Sent Successfully"
else:
res="Error occured, please try again later."