def __get__(self, instance, owner=None):
        # Handle access on the model (i.e. Link.tags)
        if instance is None:
            return edit_string_for_tags(Tag.objects.usage_for_model(owner))

        tags = self._get_instance_tag_cache(instance)
        if tags is None:
            if instance.pk is None:
                self._set_instance_tag_cache(instance, '')
            else:
                self._set_instance_tag_cache(
                    instance, edit_string_for_tags(Tag.objects.get_for_object(instance)))
        return self._get_instance_tag_cache(instance)
Tag getter. Returns an instance's tags if accessed on an instance, and
dataset/ETHPy150Open amarandon/smeuhsocial/apps/tagging/fields.py/TagField.__get__