Files
netbox/netbox/dcim
Martin Hauser 6ca82a0901 fix(dcim): Avoid clearing scope on clone
ScopedForm._set_scoped_values() cleared initial['scope'] whenever the
scope_type differed from the instance value. During cloning (unsaved
instance), this runs on the initial GET and wipes the pre-filled scope,
forcing the user to re-select it.

Only clear the scope when editing an existing object (instance.pk set)
and the scope type has actually changed.

Fixes #21202
2026-01-22 22:34:47 +01:00
..
2026-01-06 13:05:07 -05:00
2025-12-09 10:39:48 -08:00
2026-01-06 13:05:07 -05:00
2025-04-10 17:17:21 -04:00
2026-01-06 13:05:07 -05:00
2025-12-08 10:49:15 -08:00