mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #1229: Fix validation error on forms where API search is used
This commit is contained in:
@ -81,7 +81,9 @@ class TenancyForm(ChainedFieldsMixin, forms.Form):
|
||||
)
|
||||
tenant = ChainedModelChoiceField(
|
||||
queryset=Tenant.objects.all(),
|
||||
chains={'group': 'tenant_group'},
|
||||
chains=(
|
||||
('group', 'tenant_group'),
|
||||
),
|
||||
required=False,
|
||||
widget=APISelect(
|
||||
api_url='/api/tenancy/tenants/?group_id={{tenant_group}}'
|
||||
|
Reference in New Issue
Block a user