def get_login_redirect(self, provider, account):
        """Return url to redirect authenticated users."""
        info = self.model._meta.app_label, self.model._meta.model_name
        # inline import to prevent circular imports.
        from .admin import PRESERVED_FILTERS_SESSION_KEY
        preserved_filters = self.request.session.get(PRESERVED_FILTERS_SESSION_KEY, None)
        redirect_url = reverse('admin:%s_%s_changelist' % info)
        if preserved_filters:
            redirect_url = add_preserved_filters(
                {'preserved_filters': preserved_filters, 'opts': self.model._meta}, redirect_url)
        return redirect_url
def get_login_redirect ( self , provider , account ) : info = self . model . _meta . app_label , self . model . _meta . model_name from . admin import PRESERVED_FILTERS_SESSION_KEY preserved_filters = self . request . session . get ( PRESERVED_FILTERS_SESSION_KEY , None ) redirect_url = reverse ( 'admin:%s_%s_changelist' % info ) if preserved_filters : redirect_url = add_preserved_filters ( { 'preserved_filters' : preserved_filters , 'opts' : self . model . _meta } , redirect_url ) return redirect_url
Return url to redirect authenticated users.