added version to Controller string representation
[plstackapi.git] / planetstack / core / models / site.py
index 47f7baa..c7516d8 100644 (file)
@@ -306,7 +306,7 @@ class Controller(PlCoreBase):
     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")
 
-    def __unicode__(self):  return u'%s %s' % (self.name, self.backend_type)
+    def __unicode__(self):  return u'%s %s %s' % (self.name, self.backend_type, self.version)
 
 class SiteDeployments(PlCoreBase):
     objects = ControllerLinkManager()