Exemplo n.º 1
0
 def dispatch(self, request, *args, **kwargs):
     logged_out = 0
     if request.user.is_active:
         # the user gets logged out in the super() call later
         logged_out = 1
     self.extra_context = {
         'form': AuthenticationForm(),
         'logged_out': logged_out
     }
     return D_LOV.dispatch(self, request, *args, **kwargs)
Exemplo n.º 2
0
    def dispatch(self, request, *args, **kwargs):
        displayInConsole(self)
        
        del request.session['profile_id']
        return LogoutView.dispatch(self, request, *args, **kwargs)
    



#