Is there a way to allow for empty fields within the Django REST serilaizer for Boolean and Int fields.
class InputAttributes(serializers.Serializer):
make = serializers.BooleanField(required=False)
speed = serializers.IntegerField(required=False)
color = serializers.CharField(required=False,allow_blank=True)
I can use the allow_blank for CharFields but not for the others. Based on the above I get,
A valid integer is required
Any ideas ?