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

Fixes #6871: Support dynamic tag types in GraphQL API

This commit is contained in:
jeremystretch
2021-08-03 16:27:56 -04:00
parent c411d2a9f1
commit 11836cdfb1
3 changed files with 3 additions and 2 deletions

View File

@ -449,7 +449,7 @@ class APIViewTestCases:
if type(field) is GQLDynamic:
# Dynamic fields must specify a subselection
fields_string += f'{field_name} {{ id }}\n'
elif type(field.type) is GQLList and field_name not in ('tags', 'choices'):
elif type(field.type) is GQLList and field_name != 'choices':
# TODO: Come up with something more elegant
# Temporary hack to support automated testing of reverse generic relations
fields_string += f'{field_name} {{ id }}\n'