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

Clean up GraphQL object types & tests

This commit is contained in:
jeremystretch
2021-06-29 12:55:17 -04:00
parent 79614ed2cf
commit ef3cb9544a
6 changed files with 88 additions and 11 deletions

View File

@@ -30,6 +30,9 @@ class IPAddressType(TaggedObjectType):
fields = '__all__'
filterset_class = filtersets.IPAddressFilterSet
def resolve_role(self, info):
return self.role or None
class PrefixType(TaggedObjectType):