]> git.parisson.com Git - telecaster-client.git/commitdiff
add OSC str
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 14:15:12 +0000 (16:15 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 14:15:12 +0000 (16:15 +0200)
telecaster/models.py

index 3cd14ec7019ade0a946c828dc950403d4c6cfc9a..fc2120152d66223f3a87b95f399630a870ba8227 100644 (file)
@@ -76,6 +76,9 @@ class OSC(Model):
     host               = CharField(_('host'), max_length=255)
     port               = IntegerField(_('port'))
 
+    def __unicode__(self):
+        return self.host + ':' + str(self.port)
+
     class Meta:
         db_table = app_label + '_' + 'osc'