[SCM] live-studio branch, master, updated. ab9da6108ae2b554bb956daa0b61a6e8678bf5eb

Chris Lamb lamby at debian.org
Sun Aug 1 03:29:55 UTC 2010


The following commit has been merged in the master branch:
commit ab9da6108ae2b554bb956daa0b61a6e8678bf5eb
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Jul 31 23:28:30 2010 -0400

    Add Build.__unicode__

diff --git a/live_studio/build/models.py b/live_studio/build/models.py
index 2456277..cd7a4a3 100644
--- a/live_studio/build/models.py
+++ b/live_studio/build/models.py
@@ -22,6 +22,10 @@ class Build(models.Model):
     class Meta:
         ordering = ('-enqueued',)
 
+    def __unicode__(self):
+        return 'Build #%d started by %s (status: %s)' % \
+            (self.pk, self.config.user.username, self.status())
+
     def status(self):
         if self.filename:
             return 'success'

-- 
live-studio



More information about the debian-live-changes mailing list