def label_from_instance(self, obj):
        """
        Creates labels which represent the tree level of each node when
        generating option labels.
        """
        return '%s %s' % (self.level_indicator * getattr(obj, obj._mptt_meta.level_attr), obj)