Commit f647cefb authored by stef's avatar stef

[fix] ajax lazy xl8 bug

parent a5c6ebf8
...@@ -94,14 +94,14 @@ def confirm(request, id, name=None): ...@@ -94,14 +94,14 @@ def confirm(request, id, name=None):
try: try:
c=Confirmation(key=actid, email=name, violation=Violation.objects.get(pk=id)) c=Confirmation(key=actid, email=name, violation=Violation.objects.get(pk=id))
except: except:
return HttpResponse(_("Thank you, this has been already confirmed")) return HttpResponse(unicode(_("Thank you, this has been already confirmed")))
return HttpResponse(_('<div class="confirm_thanks">Thank you for your confirmation</div>')) return HttpResponse('<div class="confirm_thanks">%s</div>' % unicode(_('Thank you for your confirmation')) )
c=Confirmation.objects.get(key=id) c=Confirmation.objects.get(key=id)
if c: if c:
c.key='' c.key=''
messages.add_message(request, messages.INFO, _('Thank you for verifying your confirmation')) messages.add_message(request, messages.INFO, unicode(_('Thank you for verifying your confirmation')))
return HttpResponseRedirect('/') # Redirect after POST return HttpResponseRedirect('/') # Redirect after POST
def sendverifymail(service,to): def sendverifymail(service,to):
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