Merge pull request #178 from jumpserver/dev

Fix a bug for get_log function 

hot fix
pull/179/merge
ibuler 9 years ago
commit 0937e64c2e

@ -317,7 +317,7 @@ class TermLogRecorder(object):
if self._lists:
self.file = self._lists.get(filename=filename)
else:
self.file = TermLog.objects.get(user=user.id, filename=filename)
self.file = TermLog.objects.get(filename=filename)
if self.file.logPath == 'locale':
return self.file.log
else:

Loading…
Cancel
Save