From 644cfeade663ff9112afd4d2b3db02103521b7e8 Mon Sep 17 00:00:00 2001 From: Thomas Fargeix Date: Sat, 2 Nov 2024 00:20:00 +0100 Subject: [PATCH] Make ObjectAliases clonable --- netbox_data_flows/models/objectaliases.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netbox_data_flows/models/objectaliases.py b/netbox_data_flows/models/objectaliases.py index b14e27d..ad11d32 100644 --- a/netbox_data_flows/models/objectaliases.py +++ b/netbox_data_flows/models/objectaliases.py @@ -75,6 +75,12 @@ class Meta: objects = ObjectAliasQuerySet.as_manager() + clone_fields = ( + "prefixes", + "ip_ranges", + "ip_addresses", + ) + def get_absolute_url(self): return reverse("plugins:netbox_data_flows:objectalias", args=[self.pk])