def get_application_model():
 try:
  (app_label, model_name) = oauth2_settings.APPLICATION_MODEL.split(u'.')
 except ValueError:
  e = u"APPLICATION_MODEL must be of the form 'app_label.model_name'"
  raise ImproperlyConfigured(e)
 app_model = apps.get_model(app_label, model_name)
 if (app_model is None):
  e = u'APPLICATION_MODEL refers to model {0} that has not been installed'
  raise ImproperlyConfigured(e.format(oauth2_settings.APPLICATION_MODEL))
 return app_model

def get_application_model ( ) : try : ( app_label , model_name ) = oauth2_settings . APPLICATION_MODEL . split ( u'.' ) except ValueError : e = u"APPLICATION_MODEL must be of the form 'app_label.model_name'" raise ImproperlyConfigured ( e ) app_model = apps . get_model ( app_label , model_name ) if ( app_model is None ) : e = u'APPLICATION_MODEL refers to model {0} that has not been installed' raise ImproperlyConfigured ( e . format ( oauth2_settings . APPLICATION_MODEL ) ) return app_model
return the application model that is active in this project .