added isntance_name to sliver page
diff --git a/plstackapi/core/admin.py b/plstackapi/core/admin.py
index d43a500..a562911 100644
--- a/plstackapi/core/admin.py
+++ b/plstackapi/core/admin.py
@@ -257,17 +257,19 @@
class SliverForm(forms.ModelForm):
class Meta:
ip = forms.CharField(widget=PlainTextWidget)
+ instance_name = forms.CharField(widget=PlainTextWidget)
model = Sliver
widgets = {
'ip': PlainTextWidget(),
+ 'instance_name': PlainTextWidget(),
}
class SliverAdmin(PlanetStackBaseAdmin):
form = SliverForm
fieldsets = [
- ('Sliver', {'fields': ['ip', 'name', 'slice', 'numberCores', 'image', 'key', 'node', 'deploymentNetwork']})
+ ('Sliver', {'fields': ['ip', 'instance_name', 'name', 'slice', 'numberCores', 'image', 'key', 'node', 'deploymentNetwork']})
]
- list_display = ['ip', 'name', 'slice', 'numberCores', 'image', 'key', 'node', 'deploymentNetwork']
+ list_display = ['ip', 'instance_name', 'name', 'slice', 'numberCores', 'image', 'key', 'node', 'deploymentNetwork']
def save_model(self, request, obj, form, change):
# update openstack connection to use this sliver's slice/tenant
diff --git a/plstackapi/core/serializers.py b/plstackapi/core/serializers.py
index b4ffe68..a341508 100644
--- a/plstackapi/core/serializers.py
+++ b/plstackapi/core/serializers.py
@@ -68,7 +68,6 @@
'router_id',
'site',
'slivers',
- 'subnet',
'updated',
'created')