1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #10036: Set clone_fields on L2VPNTermination

This commit is contained in:
jeremystretch
2022-08-17 10:51:50 -04:00
parent 93b36ed580
commit 5671a37f43

View File

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