From 1c09e348551e2af0912be30591f8ba65652623e0 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 16 Nov 2014 18:39:31 +0000 Subject: [PATCH] Added backendlog unicode method --- TODO.md | 8 ++------ orchestra/apps/orchestration/models.py | 3 +++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/TODO.md b/TODO.md index 0df6ad02..495c1e35 100644 --- a/TODO.md +++ b/TODO.md @@ -75,7 +75,7 @@ Remember that, as always with QuerySets, any subsequent chained methods which im * jabber with mailbox accounts (dovecto mail notification) -* rename accounts register to manager register or accounttools, accountutils +* rename accounts register to "account", and reated api and admin references * take a look icons from ajenti ;) @@ -173,8 +173,4 @@ Remember that, as always with QuerySets, any subsequent chained methods which im * webapp backend option compatibility check? - -* ServiceBackend.validate() : used for server paths validation -* ServiceBackend.grant_access() : used for granting access -* bottom line: allow arbitrary backend methods (underscore method names that are not to be executed?) -* HowTo?? Signals ? what? +* admin systemuser home/directory, add default home and empty directory with has_shell on admin diff --git a/orchestra/apps/orchestration/models.py b/orchestra/apps/orchestration/models.py index 8203562c..0c461ed8 100644 --- a/orchestra/apps/orchestration/models.py +++ b/orchestra/apps/orchestration/models.py @@ -81,6 +81,9 @@ class BackendLog(models.Model): class Meta: get_latest_by = 'id' + def __unicode__(self): + return "%s@%s" % (self.backend, self.server) + @property def execution_time(self): return (self.updated_at-self.created_at).total_seconds()