Permalink
Browse files

Fixed bug with modifying TemplateResponse context

  • Loading branch information...
1 parent 806413c commit d49bbe785abfc704797a079724828709fbe6851e @brosner committed Nov 7, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 django_openid/auth.py
  2. +1 −1 django_openid/tests/auth_tests.py
@@ -69,7 +69,7 @@ def show_login(self, request, extra_message=None):
if self.password_logins_enabled:
response.template_name = self.login_plus_password_template
- response.template_context.update({
+ response.context_data.update({
'account_recovery': self.account_recovery_enabled and (
self.account_recovery_url or (request.path + 'recover/')
),
@@ -137,7 +137,7 @@ def testRecoverAccountBadUsername(self):
'recover': 'does-not-exist'
})
self.assertEqual(
- response.template_context['message'],
+ response.context_data['message'],
RegistrationConsumer.recovery_not_found_message
)

0 comments on commit d49bbe7

Please sign in to comment.