add command log modal

This commit is contained in:
ibuler
2016-10-27 00:03:05 +08:00
parent 573b3a8743
commit d19b47a427
4 changed files with 46 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ class ProxyLogSerializer(serializers.ModelSerializer):
class Meta:
model = models.ProxyLog
fields = ['id', 'name', 'username', 'hostname', 'ip', 'system_user', 'login_type', 'terminal',
'log_file', 'was_failed', 'is_finished', 'date_start', 'time', 'command_length']
'log_file', 'was_failed', 'is_finished', 'date_start', 'time', 'command_length', "commands_dict"]
@staticmethod
def get_time(obj):