1
0
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:
John Anderson
2019-02-20 03:56:32 -05:00
parent fc2bb724fa
commit 0a06d92c2e
2 changed files with 7 additions and 4 deletions

View File

@ -14,11 +14,11 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='tag', model_name='tag',
name='color', name='color',
field=utilities.fields.ColorField(max_length=6), field=utilities.fields.ColorField(max_length=6, default='9e9e9e'),
), ),
migrations.AddField( migrations.AddField(
model_name='tag', model_name='tag',
name='comments', name='comments',
field=models.TextField(blank=True), field=models.TextField(blank=True, default=''),
), ),
] ]

View File

@ -870,9 +870,12 @@ class ObjectChange(models.Model):
class Tag(TagBase): class Tag(TagBase):
color = ColorField() color = ColorField(
default='9e9e9e'
)
comments = models.TextField( comments = models.TextField(
blank=True blank=True,
default=''
) )