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
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:
@@ -87,7 +87,9 @@ class Service(ContactsMixin, ServiceBase, PrimaryModel):
|
||||
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:
|
||||
indexes = (
|
||||
|
||||
Reference in New Issue
Block a user