mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	9856 fix wireless FK
This commit is contained in:
		@@ -33,6 +33,9 @@ class WirelessLANGroupType(OrganizationalObjectType):
 | 
			
		||||
    filters=WirelessLANFilter
 | 
			
		||||
)
 | 
			
		||||
class WirelessLANType(NetBoxObjectType):
 | 
			
		||||
    group: Annotated["WirelessLANGroupType", strawberry.lazy('wireless.graphql.types')] | None
 | 
			
		||||
    vlan: Annotated["VLANType", strawberry.lazy('ipam.graphql.types')] | None
 | 
			
		||||
    tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
 | 
			
		||||
 | 
			
		||||
    @strawberry_django.field
 | 
			
		||||
    def interfaces(self) -> List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]:
 | 
			
		||||
@@ -45,4 +48,8 @@ class WirelessLANType(NetBoxObjectType):
 | 
			
		||||
    filters=WirelessLinkFilter
 | 
			
		||||
)
 | 
			
		||||
class WirelessLinkType(NetBoxObjectType):
 | 
			
		||||
    pass
 | 
			
		||||
    interface_a: Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]
 | 
			
		||||
    interface_b: Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]
 | 
			
		||||
    tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None
 | 
			
		||||
    _interface_a_device: Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')] | None
 | 
			
		||||
    _interface_b_device: Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')] | None
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user