Просмотр исходного кода

Closes #10061: Replicate type when cloning L2VPN instances

jeremystretch 3 лет назад
Родитель
Сommit
804c064a7e
2 измененных файлов с 6 добавлено и 0 удалено
  1. 4 0
      docs/release-notes/version-3.3.md
  2. 2 0
      netbox/ipam/models/l2vpn.py

+ 4 - 0
docs/release-notes/version-3.3.md

@@ -2,6 +2,10 @@
 
 
 ## v3.3.1 (FUTURE)
 ## v3.3.1 (FUTURE)
 
 
+### Enhancements
+
+* [#10061](https://github.com/netbox-community/netbox/issues/10061) - Replicate type when cloning L2VPN instances
+
 ### Bug Fixes
 ### Bug Fixes
 
 
 * [#10040](https://github.com/netbox-community/netbox/issues/10040) - Fix exception when ordering prefixes by flat representation
 * [#10040](https://github.com/netbox-community/netbox/issues/10040) - Fix exception when ordering prefixes by flat representation

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

@@ -53,6 +53,8 @@ class L2VPN(NetBoxModel):
         to='tenancy.ContactAssignment'
         to='tenancy.ContactAssignment'
     )
     )
 
 
+    clone_fields = ('type',)
+
     class Meta:
     class Meta:
         ordering = ('name', 'identifier')
         ordering = ('name', 'identifier')
         verbose_name = 'L2VPN'
         verbose_name = 'L2VPN'