def __cmp__(self, obj):
        lhs, rhs = id(self), obj
        if isinstance(obj, ExecuteContext):
            lhs, rhs = self.item, obj.item

        return cmp(lhs, rhs)
check if a specific widget has been defined for this field
dataset/ETHPy150Open facebook/sparts/sparts/vtask.py/ExecuteContext.__cmp__--crossover with--dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailadmin/edit_handlers.py/BaseFieldPanel.widget_overrides