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

Omit _path from CableTermination models

This commit is contained in:
jeremystretch
2021-06-30 10:20:20 -04:00
parent e6091ee0c9
commit 2fe734e6f9
2 changed files with 6 additions and 9 deletions

View File

@ -446,9 +446,6 @@ class APIViewTestCases:
# Compile list of fields to include
fields_string = ''
for field_name, field in type_class._meta.fields.items():
# TODO: Omit "hidden" fields from GraphQL types
if field_name.startswith('_'):
continue
if type(field) is Dynamic:
# Dynamic fields must specify a subselection
fields_string += f'{field_name} {{ id }}\n'