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:
@@ -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):
|
||||
|
||||
|
Reference in New Issue
Block a user