From 862593f2ddc891173c72449dfcd913b6a4ffea56 Mon Sep 17 00:00:00 2001 From: Martin Hauser Date: Wed, 11 Feb 2026 18:01:30 +0100 Subject: [PATCH] fix(circuits): Persist CircuitType owner field CircuitTypeForm rendered `owner` twice and did not persist ownership because the displayed fields didn't match the fields processed by the form. Remove `owner` from the fieldset and include it in `Meta.fields` to keep rendering and form processing in sync. Fixes #21397 --- netbox/circuits/forms/model_forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/circuits/forms/model_forms.py b/netbox/circuits/forms/model_forms.py index 906fe8952..d6e3300b8 100644 --- a/netbox/circuits/forms/model_forms.py +++ b/netbox/circuits/forms/model_forms.py @@ -91,13 +91,13 @@ class ProviderNetworkForm(PrimaryModelForm): class CircuitTypeForm(OrganizationalModelForm): fieldsets = ( - FieldSet('name', 'slug', 'color', 'description', 'owner', 'tags'), + FieldSet('name', 'slug', 'color', 'description', 'tags'), ) class Meta: model = CircuitType fields = [ - 'name', 'slug', 'color', 'description', 'comments', 'tags', + 'name', 'slug', 'color', 'description', 'owner', 'comments', 'tags', ]