Skip to content

Commit 7280dfa

Browse files
arthansonjeremystretch
authored andcommitted
12038 fix clone tag
1 parent 4428a44 commit 7280dfa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

netbox/extras/models/tags.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from taggit.models import TagBase, GenericTaggedItemBase
66

77
from netbox.models import ChangeLoggedModel
8-
from netbox.models.features import ExportTemplatesMixin, WebhooksMixin
8+
from netbox.models.features import CloningMixin, ExportTemplatesMixin, WebhooksMixin
99
from utilities.choices import ColorChoices
1010
from utilities.fields import ColorField
1111

@@ -14,7 +14,7 @@
1414
# Tags
1515
#
1616

17-
class Tag(ExportTemplatesMixin, WebhooksMixin, ChangeLoggedModel, TagBase):
17+
class Tag(CloningMixin, ExportTemplatesMixin, WebhooksMixin, ChangeLoggedModel, TagBase):
1818
id = models.BigAutoField(
1919
primary_key=True
2020
)
@@ -26,6 +26,10 @@ class Tag(ExportTemplatesMixin, WebhooksMixin, ChangeLoggedModel, TagBase):
2626
blank=True,
2727
)
2828

29+
clone_fields = (
30+
'color', 'description',
31+
)
32+
2933
class Meta:
3034
ordering = ['name']
3135

0 commit comments

Comments
 (0)