def handle_charge_dispute_event(sender, event, **kwargs):
    """Handle updates to Dispute objects
    - dispute: https://stripe.com/docs/api/disputes
    """
    # will recieve all events of the type charge.dispute.Y so
    # need to ensure the data object is related to Dispute Object
    target_object_type = event.data.get("object", {}).get("object", {})

    if target_object_type == "dispute":
        _handle_crud_like_event(target_cls=models.Dispute, event=event)
Handle updates to Dispute objects
    - dispute: https://stripe.com/docs/api/disputes
    
djstripe/event_handlers.py