|
@@ -454,7 +454,7 @@ class APIViewTestCases:
|
|
|
"""
|
|
"""
|
|
|
print(f"field_name: {field.name} type: {field.type}")
|
|
print(f"field_name: {field.name} type: {field.type}")
|
|
|
|
|
|
|
|
- if field.name == 'front_image':
|
|
|
|
|
|
|
+ if field.name == 'assigned_object':
|
|
|
breakpoint()
|
|
breakpoint()
|
|
|
pass
|
|
pass
|
|
|
"""
|
|
"""
|
|
@@ -467,6 +467,9 @@ class APIViewTestCases:
|
|
|
elif type(field.type) is StrawberryList and type(field.type.of_type) is StrawberryUnion:
|
|
elif type(field.type) is StrawberryList and type(field.type.of_type) is StrawberryUnion:
|
|
|
# this would require a fragment query
|
|
# this would require a fragment query
|
|
|
continue
|
|
continue
|
|
|
|
|
+ elif type(field.type) is StrawberryUnion:
|
|
|
|
|
+ # this would require a fragment query
|
|
|
|
|
+ continue
|
|
|
elif field.type is strawberry_django.fields.types.DjangoModelType:
|
|
elif field.type is strawberry_django.fields.types.DjangoModelType:
|
|
|
# Dynamic fields must specify a subselection
|
|
# Dynamic fields must specify a subselection
|
|
|
fields_string += f'{field.name} {{ pk }}\n'
|
|
fields_string += f'{field.name} {{ pk }}\n'
|