Commit 611c0cd7 authored by Adrián Ribao's avatar Adrián Ribao
Browse files

fixed important bug to send email backend

parent 3301dbd1
......@@ -5,6 +5,7 @@ This backend creates a deactivated user, and sends an email with the confirmatio
from perfiles.views import CreateUserBase
from django.template import Context, loader
#from django.core.signing import TimestampSigner, BadSignature, SignatureExpired
from django.utils.translation import ugettext as _
from django.core import signing
from django.contrib.auth.models import User
from django.http import HttpResponseRedirect, Http404
......@@ -33,8 +34,8 @@ class CreateUser(CreateUserBase):
'site': site,
content = t.render(Context(data))
send_mail('Activation', content, '',
[''], fail_silently=False)
send_mail(_(u'Activation'), content, '',
[,], fail_silently=False)
#context ={
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