def update(self):
        self._validate()
        active = self.get_active()

        if active:
            for mapping in self._field_mappings:
                setattr(self.proxy_model, mapping[0], self._get_attr(mapping[0], self.content_object.ProxyMeta) or mapping[1])
            self.proxy_model.active = active
            self.proxy_model.save()
        elif self.proxy_model.id:
            self.proxy_model.delete()
Initialize all valid properties.
dataset/ETHPy150Open montylounge/django-proxy/django_proxy/signals.py/DjangoProxy.update--crossover with--dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/specimen.py/SpecimenTreatment.__init__