From ce50d74eab3826c1cb464864867769ba1cbbcf53 Mon Sep 17 00:00:00 2001 From: Harris Lapiroff Date: Tue, 28 Jun 2011 10:28:03 -0400 Subject: [PATCH] Small correction to a bug that was raising an error on the account_required method of AccountMultiView in instances where no manage_account_page is specified. 'node' should be instead 'request.node'. --- philo/contrib/waldo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/philo/contrib/waldo/models.py b/philo/contrib/waldo/models.py index 411cf8e..72c81c3 100644 --- a/philo/contrib/waldo/models.py +++ b/philo/contrib/waldo/models.py @@ -501,7 +501,7 @@ class AccountMultiView(RegistrationMultiView): self.set_requirement_redirect(request, redirect=request.path) redirect = self.reverse('account', node=request.node) else: - redirect = node.get_absolute_url() + redirect = request.node.get_absolute_url() return HttpResponseRedirect(redirect) return view(request, *args, **kwargs) -- 2.20.1