def _is_full_redirect(redirect_url):
 redirect_views = getattr(settings, 'HARDTREE_AJAX_RELOAD_ON_REDIRECT', ['user_login'])
 for view in redirect_views:
  url = ''
  try:
   url = reverse(view)
  except NoReverseMatch:
   pass
  if (url and (url == redirect_url)):
   return True
 return False

def _is_full_redirect ( redirect_url ) : redirect_views = getattr ( settings , 'HARDTREE_AJAX_RELOAD_ON_REDIRECT' , [ 'user_login' ] ) for view in redirect_views : url = '' try : url = reverse ( view ) except NoReverseMatch : pass if ( url and ( url == redirect_url ) ) : return True return False
returns true if this page requires full reload with ajax enabled .