def get_hook_model():
    """
    Returns the Custom Hook model if defined in settings,
    otherwise the default Hook model.
    """
    from rest_hooks.models import Hook
    HookModel = Hook
    if getattr(settings, 'HOOK_CUSTOM_MODEL', None):
        HookModel = get_module(settings.HOOK_CUSTOM_MODEL)
    return HookModel
Returns the Custom Hook model if defined in settings,
    otherwise the default Hook model.