Skip to content

Commit

Permalink
[fix] redirect at confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
stef committed Sep 1, 2012
1 parent 8dd4af9 commit 1a4e64f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bt/views.py
Expand Up @@ -111,11 +111,9 @@ def confirm(request, id, name=None):
try:
c=Confirmation(key=actid, email=name, violation=Violation.objects.get(pk=id))
except:
messages.add_message(request, messages.INFO, unicode(_('Thank you, this has been already confirmed')))
return HttpResponseRedirect('/') # Redirect after POST
return HttpResponse(unicode(_('Thank you, this has been already confirmed')))
c.save()
messages.add_message(request, messages.INFO, unicode(_('Thank you for your confirmation')))
return HttpResponseRedirect('/') # Redirect after POST
return HttpResponse(unicode(_('Thank you for your confirmation')))
try:
c = get_object_or_404(Confirmation, key=id)
except:
Expand Down

0 comments on commit 1a4e64f

Please sign in to comment.