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

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