graphene-django/graphene_django/rest_framework/tests
B4rtware 6a19ab5a4b
use to_representation in favor of get_attribute (#848)
* use `to_represenation` in favor of `get_attribute`

* fix datetime type does get converted to a string

to_representation will convert the datetime field into a string representation. However the to_representation on the method field will only call its underlying method.

* fix add missing import

* apply black formatter

* add test for serializer method field

* apply black format

* improve backward compatibility

by using date's class contructor instead of fromisostring

* apply black format

* fix black format issue
2020-02-21 17:42:47 +00:00
..
__init__.py Initial implementation of serializer field converter 2017-06-26 09:19:49 +01:00
test_field_converter.py Adding support for disabling enum creation on SerializerMutation (#851) 2020-02-07 10:17:56 +00:00
test_multiple_model_serializers.py Alias only_fields as fields and exclude_fields as exclude (#691) 2019-07-09 14:03:11 +01:00
test_mutation.py use to_representation in favor of get_attribute (#848) 2020-02-21 17:42:47 +00:00