def is_safe_callable(self, obj):
    'Test if callback is safe.'
    return (isinstance(obj, AllStates) or super().is_safe_callable(obj))
Test if callback is safe.
def is_safe_callable(self, obj):
    
    return (isinstance(obj, AllStates) or super().is_safe_callable(obj))