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

Closes #4672: Set default color for rack and devices roles

This commit is contained in:
Jeremy Stretch
2020-05-26 09:36:27 -04:00
parent faf3885775
commit 92f49b4711
8 changed files with 102 additions and 39 deletions

View File

@ -3,6 +3,7 @@ from django.urls import reverse
from django.utils.text import slugify
from taggit.models import TagBase, GenericTaggedItemBase
from utilities.choices import ColorChoices
from utilities.fields import ColorField
from utilities.models import ChangeLoggedModel
@ -13,7 +14,7 @@ from utilities.models import ChangeLoggedModel
class Tag(TagBase, ChangeLoggedModel):
color = ColorField(
default='9e9e9e'
default=ColorChoices.COLOR_GREY
)
description = models.CharField(
max_length=200,