1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

9856 cleanup

This commit is contained in:
Arthur
2024-02-12 13:01:27 -08:00
parent a171a02844
commit 7779e87ff3
7 changed files with 4 additions and 417 deletions

View File

@ -446,7 +446,10 @@ class APIViewTestCases:
# Compile list of fields to include
fields_string = ''
for field_name, field in type_class._meta.fields.items():
for field_name, field in type_class.__dataclass_fields__.items():
# for field_name, field in type_class._meta.fields.items():
print(f"field_name: {field_name} field: {field}")
is_string_array = False
if type(field.type) is GQLList:
if field.type.of_type is GQLString: