Hook for controlling the update of an model instance. Override this if you need to do more with your
        data before updating the object than just mapping the deserialized data to the attribute of the instance.

def perform_partial_update(self, data, instance):
        """
        Hook for controlling the update of an model instance. Override this if you need to do more with your
        data before updating the object than just mapping the deserialized data to the attribute of the instance.
        """

        for key, val in data.items():
            setattr(instance, key, val)