Minor correction to embed template tag: updating the context adds an additional conte...
[philo.git] / contrib / waldo / models.py
index e2d70ae..f1ee05a 100644 (file)
@@ -164,7 +164,7 @@ class LoginMultiView(MultiView):
        login = never_cache(login)
        
        def logout(self, request):
        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):
        
        def login_required(self, view):
                def inner(request, *args, **kwargs):