def instance_only(instance):
    if instance is None:
        raise AttributeError('Can only be accessed via instance')
Ensures instance is not None for ``__get__`` and ``__set__`` methods.
dataset/ETHPy150Open ulule/django-linguist/linguist/fields.py/instance_only