added version to Controller string representation
authorTony Mack <tmack@tux.cs.princeton.edu>
Fri, 26 Dec 2014 17:15:42 +0000 (12:15 -0500)
committerTony Mack <tmack@tux.cs.princeton.edu>
Fri, 26 Dec 2014 17:15:42 +0000 (12:15 -0500)
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()