Explorar o código

Closes #10036: Set clone_fields on L2VPNTermination

jeremystretch %!s(int64=3) %!d(string=hai) anos
pai
achega
5671a37f43
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      netbox/ipam/models/l2vpn.py

+ 7 - 0
netbox/ipam/models/l2vpn.py

@@ -8,6 +8,11 @@ from ipam.choices import L2VPNTypeChoices
 from ipam.constants import L2VPN_ASSIGNMENT_MODELS
 from netbox.models import NetBoxModel
 
+__all__ = (
+    'L2VPN',
+    'L2VPNTermination',
+)
+
 
 class L2VPN(NetBoxModel):
     name = models.CharField(
@@ -79,6 +84,8 @@ class L2VPNTermination(NetBoxModel):
         fk_field='assigned_object_id'
     )
 
+    clone_fields = ('l2vpn',)
+
     class Meta:
         ordering = ('l2vpn',)
         verbose_name = 'L2VPN termination'