diff --git a/lib/main/admin.py b/lib/main/admin.py index ea13f05c40..e1488214f2 100644 --- a/lib/main/admin.py +++ b/lib/main/admin.py @@ -165,7 +165,7 @@ class HostAdmin(BaseModelAdmin): list_filter = ('inventory', 'active') #form = HostAdminForm fieldsets = ( - (None, {'fields': (('name', 'active'), 'inventory', 'description', #'vdata' + (None, {'fields': (('name', 'active'), 'inventory', 'description', 'variable_data', )}), (_('Tags'), {'fields': ('tags',)}), (_('Audit Trail'), {'fields': ('creation_date', 'created_by', 'audit_trail',)}), diff --git a/lib/main/models/__init__.py b/lib/main/models/__init__.py index 380a7f06a8..b6af4dac1f 100644 --- a/lib/main/models/__init__.py +++ b/lib/main/models/__init__.py @@ -487,7 +487,7 @@ class VariableData(CommonModelNameNotUnique): #host = models.OneToOneField('Host', null=True, default=None, blank=True, on_delete=SET_NULL, related_name='variable_data') #group = models.OneToOneField('Group', null=True, default=None, blank=True, on_delete=SET_NULL, related_name='variable_data') - data = models.TextField() # FIXME: JsonField + data = models.TextField() # FIXME: JsonField (and validation) def __unicode__(self): return '%s = %s' % (self.name, self.data)