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