MCPcopy
hub / github.com/makeplane/plane / validate

Method validate

apps/api/plane/app/serializers/state.py:31–34  ·  view source on GitHub ↗
(self, attrs)

Source from the content-addressed store, hash-verified

29 read_only_fields = ["workspace", "project"]
30
31 def validate(self, attrs):
32 if attrs.get("group") == StateGroup.TRIAGE.value:
33 raise serializers.ValidationError("Cannot create triage state")
34 return attrs
35
36
37class StateLiteSerializer(BaseSerializer):

Callers 1

autolinkFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected