From b62cb06a150b6844f73d8c7133a46df412bb7f00 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Mon, 22 Dec 2014 15:59:05 -0800 Subject: [PATCH] add ManyToMany for (Image, Deployment) --- planetstack/core/models/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/planetstack/core/models/image.py b/planetstack/core/models/image.py index 4399c60..0bca22f 100644 --- a/planetstack/core/models/image.py +++ b/planetstack/core/models/image.py @@ -10,6 +10,7 @@ class Image(PlCoreBase): disk_format = models.CharField(max_length=256) container_format = models.CharField(max_length=256) path = models.CharField(max_length=256, null=True, blank=True, help_text="Path to image on local disk") + deployments = models.ManyToManyField('Deployment', through='ImageDeployments', blank=True, help_text="Select which images should be instantiated on this deployment", related_name='images') def __unicode__(self): return u'%s' % (self.name) -- 2.43.0