def get_object_label(self, obj):
        label = OptionLabel(getattr(obj, self.title_field))
        try:
            label.published = obj.publish
        except __HOLE__:
            pass
        return label
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/unstable/forms/convs.py/ModelChoice.get_object_label