mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-03 22:06:26 -06:00
feat(ipam): Add parent object fields for Services
CI / build (20.x, 3.12) (push) Failing after 13s
CI / build (20.x, 3.13) (push) Failing after 9s
CI / build (20.x, 3.14) (push) Failing after 9s
CodeQL / Analyze (actions) (push) Failing after 31s
CodeQL / Analyze (python) (push) Failing after 36s
CodeQL / Analyze (javascript-typescript) (push) Failing after 40s
CI / build (20.x, 3.12) (push) Failing after 13s
CI / build (20.x, 3.13) (push) Failing after 9s
CI / build (20.x, 3.14) (push) Failing after 9s
CodeQL / Analyze (actions) (push) Failing after 31s
CodeQL / Analyze (python) (push) Failing after 36s
CodeQL / Analyze (javascript-typescript) (push) Failing after 40s
Include `parent_object_type` and `parent_object_id` in `clone_fields` for services. This improves cloning behavior for models using parent object references, ensuring more accurate data duplication. Fixes #21168
This commit is contained in:
committed by
Jeremy Stretch
parent
cf12bb5bf5
commit
be5bd74d4e
@@ -87,7 +87,9 @@ class Service(ContactsMixin, ServiceBase, PrimaryModel):
|
|||||||
help_text=_("The specific IP addresses (if any) to which this application service is bound")
|
help_text=_("The specific IP addresses (if any) to which this application service is bound")
|
||||||
)
|
)
|
||||||
|
|
||||||
clone_fields = ['protocol', 'ports', 'description', 'parent', 'ipaddresses', ]
|
clone_fields = (
|
||||||
|
'protocol', 'ports', 'description', 'parent_object_type', 'parent_object_id', 'ipaddresses',
|
||||||
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
indexes = (
|
indexes = (
|
||||||
|
|||||||
Reference in New Issue
Block a user