Skip to content

VuedaReadonlyListSerializer ​

Overview ​

List serializer that disables create and update. Used as the list class for VuedaReadonlySerializer.

validate_empty_values ​

Validate empty values, and either:

  • Raise ValidationError, indicating invalid data.
  • Raise SkipField, indicating that the field should be ignored.
  • Return (True, data), indicating an empty value that should be returned without any further validation being applied.
  • Return (False, data), indicating a non-empty value, that should have validation applied as normal.

Signature ​

validate_empty_values(self, data)

Parameters ​

NameTypeRequiredDefaultDescription
selfyes
datayes

Source ​

server/vueda/core/serializers/__init__.py:1139

Source ​

server/vueda/core/serializers/__init__.py:1133