def _from_db(self, model_instance):
        return bool(model_instance._state.adding and model_instance.pk)
Helper to determine if model instance is from the DB.
dataset/ETHPy150Open djangonauts/django-hstore/django_hstore/fields.py/SerializedDictionaryField._from_db