1
0
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:
John Anderson
2019-02-22 01:32:31 -05:00
parent fba6d28603
commit b9d11aa4ca
11 changed files with 90 additions and 76 deletions

View File

@@ -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")
)