mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
Issue #12622: Fix creating Prefix using VLAN without site
This commit is contained in:
parent
852026bf7b
commit
23de277386
@ -1,4 +1,5 @@
|
||||
from django import forms
|
||||
from django.conf import settings
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.utils.translation import gettext as _
|
||||
@ -213,7 +214,7 @@ class PrefixForm(TenancyForm, NetBoxModelForm):
|
||||
required=False,
|
||||
label=_('VLAN'),
|
||||
query_params={
|
||||
'site_id': '$site',
|
||||
'site_id': ['$site', settings.FILTERS_NULL_CHOICE_VALUE],
|
||||
}
|
||||
)
|
||||
role = DynamicModelChoiceField(
|
||||
|
Loading…
Reference in New Issue
Block a user