If I have:
class Example(serializers.ModelSerializer):
time = DateTimeRangeField(required=False)
it will fail with an error:
{'time': ['This field is required.']}
However if this was serializers.Serializer it respects the required attribute on the field. Has anybody else come across this? Any ideas on how to make a field not required?