Include confirmation key in context object.

This way our templates can reference the confirmation key later.

(imported from commit 4d57e1309386f2236829b6fdf4e4ad43c5b125c8)
This commit is contained in:
Luke Faraone 2012-09-28 16:34:47 -04:00
parent b801b50c26
commit 5531f188c7
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ def confirm(request, confirmation_key):
'object': obj, 'object': obj,
'confirmed': confirmed, 'confirmed': confirmed,
'days': getattr(settings, 'EMAIL_CONFIRMATION_DAYS', 10), 'days': getattr(settings, 'EMAIL_CONFIRMATION_DAYS', 10),
'key': confirmation_key,
} }
templates = [ templates = [
'confirmation/confirm.html', 'confirmation/confirm.html',