Django - DRF Advanced Features
Given this custom serializer field code, what will be the output for input value 10?
class DoubleField(serializers.Field):
def to_representation(self, value):
return value * 2
field = DoubleField()
print(field.to_representation(10))