From 7fa36cada56114a564472af9915cbdaf0161f148 Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 7 Mar 2024 12:59:56 -0800 Subject: [PATCH] 9856 fix test imagefield --- netbox/utilities/testing/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/testing/api.py b/netbox/utilities/testing/api.py index 1c4d98e2f..698892536 100644 --- a/netbox/utilities/testing/api.py +++ b/netbox/utilities/testing/api.py @@ -453,7 +453,7 @@ class APIViewTestCases: for field in type_class.__strawberry_definition__.fields: if ( - type(field.type) in ( + field.type in ( strawberry_django.fields.types.DjangoFileType, strawberry_django.fields.types.DjangoImageType) or type(field.type) is StrawberryOptional and field.type.of_type in ( strawberry_django.fields.types.DjangoFileType, strawberry_django.fields.types.DjangoImageType)