X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/3b366a97268ee50421047f5e147aef8a8c4fc984..4c2f395f73a970c302682ad76913b6bb38f70568:/contrib/waldo/models.py?ds=sidebyside diff --git a/contrib/waldo/models.py b/contrib/waldo/models.py index e2d70ae..f1ee05a 100644 --- a/contrib/waldo/models.py +++ b/contrib/waldo/models.py @@ -164,7 +164,7 @@ class LoginMultiView(MultiView): login = never_cache(login) def logout(self, request): - return auth_views.logout(request, request.META['HTTP_REFERER']) + return auth_views.logout(request, request.META.get('HTTP_REFERER', request.node.get_absolute_url())) def login_required(self, view): def inner(request, *args, **kwargs):