add foreign key field 'deployment' to Controller.
diff --git a/planetstack/core/models/site.py b/planetstack/core/models/site.py
index d1f04dd..449a72b 100644
--- a/planetstack/core/models/site.py
+++ b/planetstack/core/models/site.py
@@ -252,6 +252,8 @@
admin_password = models.CharField(max_length=200, null=True, blank=True, help_text="Password of theadmin user at this controller")
admin_tenant = models.CharField(max_length=200, null=True, blank=True, help_text="Name of the tenant the admin user belongs to")
domain = models.CharField(max_length=200, null=True, blank=True, help_text="Name of the domain this controller belongs to")
+ deployment = models.ForeignKey(Deployment,related_name='controllerdeployments')
+
def __unicode__(self): return u'%s %s %s' % (self.name, self.backend_type, self.version)