@classmethod
    def create_or_update_from_instance(cls, instance):
        try:
            val = cls.objects.get(pk=cls.get_instance_id(instance))
        except cls.DoesNotExist:
            val = cls.from_instance(instance)
            val.save()
        else:
            if not val.matches_exact(instance):
                val.update(instance)
                val.save()

        return val
Return the value of this snapshot.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sofabed/models.py/BaseDataIndex.create_or_update_from_instance--crossover with--dataset/ETHPy150Open abehaskins/python-firebasin/firebasin/datasnapshot.py/DataSnapshot.val