Added backendlog unicode method

This commit is contained in:
Marc 2014-11-16 18:39:31 +00:00
parent 3348218c62
commit 1c09e34855
2 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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()