def METHOD_NAME(app_name: str, slug: str) -> SlugModel:
    """Get a model object from a slug and an app."""
    if app_name == "club":
        from apps.club.models import BDX, Club
        object = get_object_or_404(Club, slug=slug)
        try:
            object = object.bdx
        except BDX.DoesNotExist:
            pass
        return object
    else:
        try:
            Model = get_model(app_name)  # noqa: N806
            return get_object_or_404(Model, slug=slug)
        except KeyError:
            raise Exception(f"Unknown application : {app_name}")