def _get_storage_model():
 storage_model_settings = getattr(django.conf.settings, 'GOOGLE_OAUTH2_STORAGE_MODEL', None)
 if (storage_model_settings is not None):
  return (storage_model_settings['model'], storage_model_settings['user_property'], storage_model_settings['credentials_property'])
 else:
  return (None, None, None)

def _get_storage_model ( ) : storage_model_settings = getattr ( django . conf . settings , 'GOOGLE_OAUTH2_STORAGE_MODEL' , None ) if ( storage_model_settings is not None ) : return ( storage_model_settings [ 'model' ] , storage_model_settings [ 'user_property' ] , storage_model_settings [ 'credentials_property' ] ) else : return ( None , None , None )
this configures whether the credentials will be stored in the session or the django orm based on the settings .