File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ def convert_django_field(field):
31
31
@convert_django_field .register (models .SlugField )
32
32
@convert_django_field .register (models .URLField )
33
33
@convert_django_field .register (models .GenericIPAddressField )
34
+ @convert_django_field .register (models .FileField )
34
35
@convert_django_field .register (UUIDField )
35
36
def convert_field_to_string (field ):
36
37
return String (description = field .help_text )
Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ def test_should_ipaddress_convert_string():
53
53
assert_conversion (models .GenericIPAddressField , graphene .String )
54
54
55
55
56
+ def test_should_file_convert_string ():
57
+ assert_conversion (models .FileField , graphene .String )
58
+
59
+
60
+ def test_should_image_convert_string ():
61
+ assert_conversion (models .ImageField , graphene .String )
62
+
63
+
56
64
def test_should_auto_convert_id ():
57
65
assert_conversion (models .AutoField , graphene .ID , primary_key = True )
58
66
You can’t perform that action at this time.
0 commit comments