mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-01-31 11:48:38 +03:00
Fix func names
This commit is contained in:
parent
7f8877fba5
commit
1352d4e02b
|
@ -122,7 +122,7 @@ def convert_field_to_float(field, registry=None):
|
|||
|
||||
|
||||
@convert_django_field.register(models.DateTimeField)
|
||||
def convert_date_to_string(field, registry=None):
|
||||
def convert_datetime_to_string(field, registry=None):
|
||||
return DateTime(description=field.help_text, required=not field.null)
|
||||
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ def convert_serializer_field_to_float(field):
|
|||
|
||||
|
||||
@get_graphene_type_from_serializer_field.register(serializers.DateTimeField)
|
||||
def convert_serializer_field_to_date_time(field):
|
||||
def convert_serializer_field_to_datetime_time(field):
|
||||
return graphene.types.datetime.DateTime
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user