def validate(self, value):
        if self.serializer.instance is not None:
            # This is an update request - this is not allowed, so we need to
            # raise a validation error
            raise ValidationError('This field may not be updated')
dataset/ETHPy150Open stackdio/stackdio/stackdio/core/validators.py/CreateOnlyValidator.validate/original