mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
added default values for comments and color fields on tag
This commit is contained in:
@ -14,11 +14,11 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='tag',
|
||||
name='color',
|
||||
field=utilities.fields.ColorField(max_length=6),
|
||||
field=utilities.fields.ColorField(max_length=6, default='9e9e9e'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='tag',
|
||||
name='comments',
|
||||
field=models.TextField(blank=True),
|
||||
field=models.TextField(blank=True, default=''),
|
||||
),
|
||||
]
|
||||
|
@ -870,9 +870,12 @@ class ObjectChange(models.Model):
|
||||
|
||||
|
||||
class Tag(TagBase):
|
||||
color = ColorField()
|
||||
color = ColorField(
|
||||
default='9e9e9e'
|
||||
)
|
||||
comments = models.TextField(
|
||||
blank=True
|
||||
blank=True,
|
||||
default=''
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user