From: Tony Mack Date: Fri, 26 Dec 2014 17:15:42 +0000 (-0500) Subject: added version to Controller string representation X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0a3910a717644b4c45f41212ff2e0cfb6a63cfac;p=plstackapi.git added version to Controller string representation --- diff --git a/planetstack/core/models/site.py b/planetstack/core/models/site.py index 47f7baa..c7516d8 100644 --- a/planetstack/core/models/site.py +++ b/planetstack/core/models/site.py @@ -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()