My serializer that returns a 0 for Null value is not working

后端 未结 0 1060

I\'m trying to create a serializer that returns the value 0 instead of Null when API data is requested.

class MyIntegerField(serializers.IntegerField         


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