[Bugfix] 修复一些bug

This commit is contained in:
ibuler
2017-02-11 12:13:02 +08:00
parent 9c7bd7d285
commit 42e4c64d06
5 changed files with 27 additions and 22 deletions

View File

@@ -58,6 +58,10 @@ class ProxyLog(models.Model):
def __unicode__(self):
return '%s-%s-%s' % (self.user, self.asset, self.system_user)
def commands(self):
from audits.backends import command_store
return command_store.filter(proxy_log_id=self.id)
class Meta:
ordering = ['-date_start', 'user']