def __delattr__(cls, name):
    """
        Remove an attribute from the class, clearing `_unbound_fields` if
        needed.
        """
    if not name.startswith('_'):
        cls._unbound_fields = None
    type.__delattr__(cls, name)
