mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
9856 fix test imagefield
This commit is contained in:
@ -453,7 +453,7 @@ class APIViewTestCases:
|
|||||||
|
|
||||||
for field in type_class.__strawberry_definition__.fields:
|
for field in type_class.__strawberry_definition__.fields:
|
||||||
if (
|
if (
|
||||||
type(field.type) in (
|
field.type in (
|
||||||
strawberry_django.fields.types.DjangoFileType, strawberry_django.fields.types.DjangoImageType) or
|
strawberry_django.fields.types.DjangoFileType, strawberry_django.fields.types.DjangoImageType) or
|
||||||
type(field.type) is StrawberryOptional and field.type.of_type in (
|
type(field.type) is StrawberryOptional and field.type.of_type in (
|
||||||
strawberry_django.fields.types.DjangoFileType, strawberry_django.fields.types.DjangoImageType)
|
strawberry_django.fields.types.DjangoFileType, strawberry_django.fields.types.DjangoImageType)
|
||||||
|
Reference in New Issue
Block a user