serializer field with “allow_null” automatically sets value to null

后端 未结 0 1191
青春惊慌失措
青春惊慌失措 2021-01-22 09:02

I have the following serializer

class NiceSerializer(serializers.Serializer):
    nice_field = serializers.CharField(required=False, allow_null=True)
    another_         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题