def get_value(self, dictionary):
"""Get value."""
value = super(DateField, self).get_value(dictionary)
return to_representation(value)
python类DateField()的实例源码
def test_should_date_convert_datetime():
assert_conversion(serializers.DateField, graphene.types.datetime.DateTime)