mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Fixes #13721: Filter VLAN choices by selected site (if any) when creating a prefix
This commit is contained in:
		@@ -215,6 +215,9 @@ class PrefixForm(TenancyForm, NetBoxModelForm):
 | 
			
		||||
        queryset=VLAN.objects.all(),
 | 
			
		||||
        required=False,
 | 
			
		||||
        selector=True,
 | 
			
		||||
        query_params={
 | 
			
		||||
            'site_id': '$site',
 | 
			
		||||
        },
 | 
			
		||||
        label=_('VLAN'),
 | 
			
		||||
    )
 | 
			
		||||
    role = DynamicModelChoiceField(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user