def get_role_model():
    """
    Returns the Role model that is active in this project.
    """
    app_model = getattr(settings, "ARCTIC_ROLE_MODEL", "arctic.Role")

    try:
        return django_apps.get_model(app_model)
    except ValueError:
        raise ImproperlyConfigured(
            "ARCTIC_ROLE_MODEL must be of the " "form 'app_label.model_name'"
        )
    except LookupError:
        raise ImproperlyConfigured(
            "ARCTIC_ROLE_MODEL refers to model '%s' that has not been "
            "installed" % settings.ARCTIC_ROLE_MODEL
        )
def get_role_model ( ) : app_model = getattr ( settings , "ARCTIC_ROLE_MODEL" , "arctic.Role" ) try : return django_apps . get_model ( app_model ) except ValueError : raise ImproperlyConfigured ( "ARCTIC_ROLE_MODEL must be of the " "form 'app_label.model_name'" ) except LookupError : raise ImproperlyConfigured ( "ARCTIC_ROLE_MODEL refers to model '%s' that has not been " "installed" % settings . ARCTIC_ROLE_MODEL )
Returns the Role model that is active in this project.