def METHOD_NAME(model, fk):
    """Get related object's pk and content type."""
    try:
        related_content_type = getattr(model, fk.ct_field)
        related_object_id = getattr(model, fk.fk_field)
    except TypeError:
        related_object_id = None
        related_content_type = None
    except ContentType.DoesNotExist:
        related_object_id = None
        related_content_type = None
    return related_content_type, related_object_id