

def _from_db(self, model_instance):
    '\n        Helper to determine if model instance is from the DB.\n        '
    return bool((model_instance._state.adding and model_instance.pk))

dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py SerializedDictionaryField._from_db/original