python类DateField()的实例源码

common.py 文件源码 项目:django-elasticsearch-dsl-drf 作者: barseghyanartur 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def get_value(self, dictionary):
        """Get value."""
        value = super(DateField, self).get_value(dictionary)
        return to_representation(value)
test_field_converter.py 文件源码 项目:graphene-django 作者: graphql-python 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
def test_should_date_convert_datetime():
    assert_conversion(serializers.DateField, graphene.types.datetime.DateTime)


问题


面经


文章

微信
公众号

扫码关注公众号