Added backendlog unicode method
This commit is contained in:
parent
3348218c62
commit
1c09e34855
8
TODO.md
8
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)
|
* 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 ;)
|
* 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?
|
* webapp backend option compatibility check?
|
||||||
|
|
||||||
|
* admin systemuser home/directory, add default home and empty directory with has_shell on admin
|
||||||
* 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?
|
|
||||||
|
|
|
@ -81,6 +81,9 @@ class BackendLog(models.Model):
|
||||||
class Meta:
|
class Meta:
|
||||||
get_latest_by = 'id'
|
get_latest_by = 'id'
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return "%s@%s" % (self.backend, self.server)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def execution_time(self):
|
def execution_time(self):
|
||||||
return (self.updated_at-self.created_at).total_seconds()
|
return (self.updated_at-self.created_at).total_seconds()
|
||||||
|
|
Loading…
Reference in a new issue