mirror of
https://github.com/graphql-python/graphene.git
synced 2024-12-01 22:14:02 +03:00
Fixed Django field convert bug pointed by @jhgg
This commit is contained in:
parent
2ba0a62a6c
commit
0aba625140
|
@ -21,6 +21,8 @@ def convert_django_field(field, cls):
|
||||||
@convert_django_field.register(models.TextField)
|
@convert_django_field.register(models.TextField)
|
||||||
@convert_django_field.register(models.EmailField)
|
@convert_django_field.register(models.EmailField)
|
||||||
@convert_django_field.register(models.SlugField)
|
@convert_django_field.register(models.SlugField)
|
||||||
|
@convert_django_field.register(models.URLField)
|
||||||
|
@convert_django_field.register(models.UUIDField)
|
||||||
def _(field, cls):
|
def _(field, cls):
|
||||||
return StringField(description=field.description)
|
return StringField(description=field.description)
|
||||||
|
|
||||||
|
@ -34,8 +36,6 @@ def _(field, cls):
|
||||||
@convert_django_field.register(models.PositiveSmallIntegerField)
|
@convert_django_field.register(models.PositiveSmallIntegerField)
|
||||||
@convert_django_field.register(models.SmallIntegerField)
|
@convert_django_field.register(models.SmallIntegerField)
|
||||||
@convert_django_field.register(models.BigIntegerField)
|
@convert_django_field.register(models.BigIntegerField)
|
||||||
@convert_django_field.register(models.URLField)
|
|
||||||
@convert_django_field.register(models.UUIDField)
|
|
||||||
@convert_django_field.register(models.IntegerField)
|
@convert_django_field.register(models.IntegerField)
|
||||||
def _(field, cls):
|
def _(field, cls):
|
||||||
return IntField(description=field.description)
|
return IntField(description=field.description)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user