Change the field
@@ -39,8 +39,8 @@ class ChannelUpdateSerializer(serializers.Serializer):
msp_id = serializers.CharField(
max_length=128, help_text="MSP ID of Organization")
data = serializers.FileField(help_text="Channel config file")
- org_type = serializers.CharField(
- max_length=24, help_text="Organization type", choices=ORG_CHOICES)
+ org_type = serializers.ChoiceField(
+ help_text="Organization type", choices=ORG_CHOICES)
class ChannelOrgListSerializer(serializers.Serializer):
