1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Add variable data to admin.

This commit is contained in:
Chris Church 2013-05-03 00:09:53 -04:00
parent 3c90f91453
commit 932b1ed620
2 changed files with 2 additions and 2 deletions

View File

@ -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',)}),

View File

@ -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)