implemnted #2392 - local config context for devices and VMs

This commit is contained in:
John Anderson
2018-09-16 00:25:20 -04:00
parent e965adad7c
commit 0da113b723
20 changed files with 232 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ from __future__ import unicode_literals
from django.conf import settings
from django.contrib.contenttypes.fields import GenericRelation
from django.contrib.postgres.fields import JSONField
from django.core.exceptions import ValidationError
from django.db import models
from django.urls import reverse
@@ -244,6 +245,10 @@ class VirtualMachine(ChangeLoggedModel, ConfigContextModel, CustomFieldModel):
content_type_field='obj_type',
object_id_field='obj_id'
)
local_config_context_data = JSONField(
blank=True,
null=True,
)
tags = TaggableManager()