fix bugs
diff --git a/plstackapi/core/models/sliver.py b/plstackapi/core/models/sliver.py
index 9d5857e..1c4065f 100644
--- a/plstackapi/core/models/sliver.py
+++ b/plstackapi/core/models/sliver.py
@@ -14,12 +14,12 @@
class Sliver(PlCoreBase):
instance_id = models.CharField(max_length=200, help_text="Nova instance id")
name = models.CharField(max_length=200, help_text="Sliver name")
- flavor = models.ForeignKey(Flavor, related_name='sliver_flavor')
- image = models.ForeignKey(Image, related_name='sliver_image')
- key = models.ForeignKey(Key, related_name='sliver_key')
- slice = models.ForeignKey(Slice, related_name='sliver_slice')
- node = models.ForeignKey(Node, related_name='sliver_node')
- site = models.ForeignKey(Site, related_name='sliver_site')
+ flavor = models.ForeignKey(Flavor, related_name='slivers')
+ image = models.ForeignKey(Image, related_name='slivers')
+ key = models.ForeignKey(Key, related_name='slivers')
+ slice = models.ForeignKey(Slice, related_name='slivers')
+ node = models.ForeignKey(Node, related_name='slivers')
+ site = models.ForeignKey(Site, related_name='slivers')
deploymentNetwork = models.ForeignKey(DeploymentNetwork, related_name='sliver_deploymentNetwork')
def __unicode__(self): return u'%s::%s' % (self.slice, self.deploymentNetwork)
diff --git a/plstackapi/core/models/subnet.py b/plstackapi/core/models/subnet.py
index 70f8176..4ea2c40 100644
--- a/plstackapi/core/models/subnet.py
+++ b/plstackapi/core/models/subnet.py
@@ -12,7 +12,7 @@
ip_version = models.IntegerField()
start = models.IPAddressField()
end = models.IPAddressField()
- slice = models.ForeignKey(Slice, related_name='slice_subnet')
+ slice = models.ForeignKey(Slice, related_name='subnet')
def __unicode__(self): return u'%s' % (self.name)