mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
refactor tag migrations and add changelog fields to tag
This commit is contained in:
@@ -868,8 +868,8 @@ class ObjectChange(models.Model):
|
||||
# Tags
|
||||
#
|
||||
|
||||
|
||||
class Tag(TagBase):
|
||||
from utilities.models import ChangeLoggedModel
|
||||
class Tag(TagBase, ChangeLoggedModel):
|
||||
color = ColorField(
|
||||
default='9e9e9e'
|
||||
)
|
||||
@@ -885,3 +885,8 @@ class TaggedItem(GenericTaggedItemBase):
|
||||
related_name="%(app_label)s_%(class)s_items",
|
||||
on_delete=models.CASCADE
|
||||
)
|
||||
|
||||
class Meta:
|
||||
index_together = (
|
||||
("content_type", "object_id")
|
||||
)
|
||||
|
Reference in New Issue
Block a user